File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -956,7 +956,7 @@ func deleteUser(e *xorm.Session, u *User) error {
956
956
Where ("watch.user_id = ?" , u .ID ).Find (& watchedRepoIDs ); err != nil {
957
957
return fmt .Errorf ("get all watches: %v" , err )
958
958
}
959
- if _ , err = e .Decr ("num_watches" ).In ("id" , watchedRepoIDs ).Update (new (Repository )); err != nil {
959
+ if _ , err = e .Decr ("num_watches" ).In ("id" , watchedRepoIDs ).NoAutoTime (). Update (new (Repository )); err != nil {
960
960
return fmt .Errorf ("decrease repository num_watches: %v" , err )
961
961
}
962
962
// ***** END: Watch *****
@@ -966,7 +966,7 @@ func deleteUser(e *xorm.Session, u *User) error {
966
966
if err = e .Table ("star" ).Cols ("star.repo_id" ).
967
967
Where ("star.uid = ?" , u .ID ).Find (& starredRepoIDs ); err != nil {
968
968
return fmt .Errorf ("get all stars: %v" , err )
969
- } else if _ , err = e .Decr ("num_stars" ).In ("id" , starredRepoIDs ).Update (new (Repository )); err != nil {
969
+ } else if _ , err = e .Decr ("num_stars" ).In ("id" , starredRepoIDs ).NoAutoTime (). Update (new (Repository )); err != nil {
970
970
return fmt .Errorf ("decrease repository num_stars: %v" , err )
971
971
}
972
972
// ***** END: Star *****
You can’t perform that action at this time.
0 commit comments