Correcting times I really messed that part up :O

This commit is contained in:
Micheal Wilkinson
2026-03-17 21:38:56 +00:00
parent d32d8bd696
commit 0887901020
2 changed files with 14 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ package repository
import (
"fmt"
"time"
"git.hrafn.xyz/aether/notes/internal/models"
)
@@ -20,6 +21,7 @@ func (r *NoteRepository) CreateNote(content string) (models.Note, error) {
}
note := models.Note{
Content: content,
LastUpdate: time.Now(),
}
return r.store.SaveNote(note)
}