UpdateTask save existing task object to database.
(db *gorp.DbMap, t *Task)
| 194 | |
| 195 | // UpdateTask save existing task object to database. |
| 196 | func UpdateTask(db *gorp.DbMap, t *Task) (err error) { |
| 197 | t.Updated = time.Now().Unix() |
| 198 | _, err = db.Update(t) |
| 199 | if err != nil { |
| 200 | err = errors.Wrapf(err, "update task failed") |
| 201 | } |
| 202 | return |
| 203 | } |
| 204 | |
| 205 | // ListTask search and page existing tasks as list. |
| 206 | func ListTask(db *gorp.DbMap, developer int64, account int64, showAll bool, offset int64, limit int64) ( |
no test coverage detected