sm(create_note): remove redundant slugify call
This commit is contained in:
parent
9775c27bbd
commit
69795449c7
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ func (h *CreateNoteHandler) Handle(ctx context.Context, raw json.RawMessage) (an
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if err = noteRepo.Upsert(ctx, cmd.Title, cmd.Path, frontmatter.Slugify(cmd.Title)); err != nil {
|
||||
if err = noteRepo.Upsert(ctx, cmd.Title, cmd.Path, slug); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue