test: fix task creation

This commit is contained in:
Denis Gukov 2022-11-09 13:40:00 +05:00
parent 1e06957028
commit 233f695c9d

View File

@ -191,7 +191,7 @@ func addTask() *db.Task {
UserID: &userPathTestUser.ID,
Created: db.GetParsedTime(time.Now()),
}
_, err := store.CreateTask(t)
t, err := store.CreateTask(t)
if err != nil {
fmt.Println("error during insertion of task:")
if j, err := json.Marshal(t); err == nil {