sm(create_note): remove redundant slugify call

This commit is contained in:
Kristian Borgwarth 2026-04-03 02:43:58 +02:00
parent 9775c27bbd
commit 69795449c7

View file

@ -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
}