fixed duplicate id gen
All checks were successful
build and deploy kleinTodo / build (push) Successful in 35s
All checks were successful
build and deploy kleinTodo / build (push) Successful in 35s
This commit is contained in:
parent
d63044e100
commit
8393ec9973
@ -17,7 +17,6 @@ func (todo Todo) Store(store *BoltStore, user string) error {
|
|||||||
if todo.Id == "" {
|
if todo.Id == "" {
|
||||||
todo.Id = uuid.New().String()
|
todo.Id = uuid.New().String()
|
||||||
}
|
}
|
||||||
todo.Id = uuid.New().String()
|
|
||||||
todo.LastModified = time.Now()
|
todo.LastModified = time.Now()
|
||||||
todoJson, err := json.Marshal(todo)
|
todoJson, err := json.Marshal(todo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user