@@ -160,7 +160,7 @@ func transferOwnership(ctx context.Context, doer *user_model.User, newOwnerName
160
160
repo .OwnerName = newOwner .Name
161
161
162
162
// Update repository.
163
- if err := repo_model .UpdateRepositoryCols (ctx , repo , "owner_id" , "owner_name" ); err != nil {
163
+ if err := repo_model .UpdateRepositoryColsNoAutoTime (ctx , repo , "owner_id" , "owner_name" ); err != nil {
164
164
return fmt .Errorf ("update owner: %w" , err )
165
165
}
166
166
@@ -304,7 +304,7 @@ func transferOwnership(ctx context.Context, doer *user_model.User, newOwnerName
304
304
return fmt .Errorf ("deleteRepositoryTransfer: %w" , err )
305
305
}
306
306
repo .Status = repo_model .RepositoryReady
307
- if err := repo_model .UpdateRepositoryCols (ctx , repo , "status" ); err != nil {
307
+ if err := repo_model .UpdateRepositoryColsNoAutoTime (ctx , repo , "status" ); err != nil {
308
308
return err
309
309
}
310
310
@@ -495,7 +495,7 @@ func RejectRepositoryTransfer(ctx context.Context, repo *repo_model.Repository,
495
495
}
496
496
497
497
repo .Status = repo_model .RepositoryReady
498
- if err := repo_model .UpdateRepositoryCols (ctx , repo , "status" ); err != nil {
498
+ if err := repo_model .UpdateRepositoryColsNoAutoTime (ctx , repo , "status" ); err != nil {
499
499
return err
500
500
}
501
501
@@ -543,7 +543,7 @@ func CancelRepositoryTransfer(ctx context.Context, repoTransfer *repo_model.Repo
543
543
}
544
544
545
545
repoTransfer .Repo .Status = repo_model .RepositoryReady
546
- if err := repo_model .UpdateRepositoryCols (ctx , repoTransfer .Repo , "status" ); err != nil {
546
+ if err := repo_model .UpdateRepositoryColsNoAutoTime (ctx , repoTransfer .Repo , "status" ); err != nil {
547
547
return err
548
548
}
549
549
0 commit comments