File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
956956 Where ("watch.user_id = ?" , u .ID ).Find (& watchedRepoIDs ); err != nil {
957957 return fmt .Errorf ("get all watches: %v" , err )
958958 }
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 {
960960 return fmt .Errorf ("decrease repository num_watches: %v" , err )
961961 }
962962 // ***** END: Watch *****
@@ -966,7 +966,7 @@ func deleteUser(e *xorm.Session, u *User) error {
966966 if err = e .Table ("star" ).Cols ("star.repo_id" ).
967967 Where ("star.uid = ?" , u .ID ).Find (& starredRepoIDs ); err != nil {
968968 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 {
970970 return fmt .Errorf ("decrease repository num_stars: %v" , err )
971971 }
972972 // ***** END: Star *****
You can’t perform that action at this time.
0 commit comments