diff options
author | Julian T <julian@jtle.dk> | 2024-05-26 22:20:40 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2024-05-29 22:25:47 +0200 |
commit | afb0a04fe600575b00d551da7dce6a08679ef7b8 (patch) | |
tree | 8f90720887cf49045d65a9d17dad984dae06275c /db.go | |
parent | 9b55b16f3b906958171b4f45002b58d5f77b9705 (diff) |
Diffstat (limited to 'db.go')
-rw-r--r-- | db.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,7 +70,7 @@ func (db *InMemDb) StartNewEntry(now time.Time, task *Entry) (*Entry, error) { From: task.From, To: nil, Date: DateFromStd(now), - Tag: task.Tag, + Tasks: task.Tasks, Comment: task.Comment, } @@ -108,8 +108,8 @@ func (db *InMemDb) SaveEntry(entry *Entry) (*Entry, error) { existent := db.entries[entry.Id] existent.Comment = entry.Comment - existent.Tag = entry.Tag existent.From = entry.From + existent.Tasks = entry.Tasks existent.To = entry.To existent.Date = entry.Date return existent, nil |