diff --git a/core/handlers/create_note_handler.go b/core/handlers/create_note_handler.go index 5869070..6a045f6 100644 --- a/core/handlers/create_note_handler.go +++ b/core/handlers/create_note_handler.go @@ -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 }