mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(be): ignore not found error when deleting task output bucket
This commit is contained in:
parent
8d0a27822d
commit
cbd441b6fd
@ -122,7 +122,12 @@ func (d *BoltDb) deleteTaskWithOutputs(projectID int, taskID int, tx *bbolt.Tx)
|
||||
return
|
||||
}
|
||||
|
||||
return tx.DeleteBucket(makeBucketId(db.TaskOutputProps, taskID))
|
||||
err = tx.DeleteBucket(makeBucketId(db.TaskOutputProps, taskID))
|
||||
if err == bbolt.ErrBucketNotFound {
|
||||
err = nil
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (d *BoltDb) DeleteTaskWithOutputs(projectID int, taskID int) error {
|
||||
|
Loading…
Reference in New Issue
Block a user