mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
Litte bug fix
This commit is contained in:
parent
9100786beb
commit
e8dd480f10
1 changed files with 4 additions and 0 deletions
|
@ -684,6 +684,10 @@ func DeleteRepository(userId, repoId int64, userName string) (err error) {
|
||||||
sess.Rollback()
|
sess.Rollback()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if _, err = sess.Delete(&Milestone{RepoId: repoId}); err != nil {
|
||||||
|
sess.Rollback()
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
rawSql := "UPDATE `user` SET num_repos = num_repos - 1 WHERE id = ?"
|
rawSql := "UPDATE `user` SET num_repos = num_repos - 1 WHERE id = ?"
|
||||||
if _, err = sess.Exec(rawSql, userId); err != nil {
|
if _, err = sess.Exec(rawSql, userId); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue