fixed duplicate id gen
All checks were successful
build and deploy kleinTodo / build (push) Successful in 35s

This commit is contained in:
Darius klein 2026-01-18 14:00:25 +01:00
parent d63044e100
commit 8393ec9973

View File

@ -17,7 +17,6 @@ func (todo Todo) Store(store *BoltStore, user string) error {
if todo.Id == "" {
todo.Id = uuid.New().String()
}
todo.Id = uuid.New().String()
todo.LastModified = time.Now()
todoJson, err := json.Marshal(todo)
if err != nil {