Skip to content

Build your personal knowledge base with Trilium Notes

docs(etapi): name setDateCreatedAndModified() in the create-note comment

Elian Doranb6daca3b80b6
diff --git a/apps/server/src/etapi/notes.ts b/apps/server/src/etapi/notes.ts
index a632300375..d933d8f9ff 100644
--- a/apps/server/src/etapi/notes.ts
+++ b/apps/server/src/etapi/notes.ts
@@ -67,7 +67,8 @@ function register(router: Router) {
try {
const resp = noteService.createNewNote(params);
- // `save()` stamps the current time, so the requested date is applied afterwards.
+ // `save()` stamps the current time, so `setDateCreatedAndModified()` applies the
+ // requested date afterwards.
if (req.body.utcDateModified) {
resp.note.setDateCreatedAndModified(undefined, req.body.utcDateModified);
}