mirror of
https://github.com/go-gitea/gitea
synced 2024-11-17 15:31:06 +01:00
Improve DeleteByID (#26904)
This commit is contained in:
parent
1859c5b636
commit
0b10df67ce
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ func DeleteByBean(ctx context.Context, bean any) (int64, error) {
|
|||
|
||||
// DeleteByID deletes the given bean with the given ID
|
||||
func DeleteByID(ctx context.Context, id int64, bean any) (int64, error) {
|
||||
return GetEngine(ctx).ID(id).NoAutoTime().Delete(bean)
|
||||
return GetEngine(ctx).ID(id).NoAutoCondition().NoAutoTime().Delete(bean)
|
||||
}
|
||||
|
||||
// FindIDs finds the IDs for the given table name satisfying the given condition
|
||||
|
|
Loading…
Reference in a new issue