Skip to content

Commit 5a2fc6e

Browse files
Update models/repo/mirror_ssh_keypair.go
Signed-off-by: techknowlogick <[email protected]>
1 parent 50662c8 commit 5a2fc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/mirror_ssh_keypair.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func DeleteUserSSHKeypair(ctx context.Context, ownerID int64) error {
158158
// RegenerateUserSSHKeypair regenerates an SSH keypair for the given owner
159159
func RegenerateUserSSHKeypair(ctx context.Context, ownerID int64) (*UserSSHKeypair, error) {
160160
var keypair *UserSSHKeypair
161-
err := db.WithTx(ctx, func(ctx context.Context) error {
161+
err := db.WithTx2(ctx, func(ctx context.Context) error {
162162
_ = DeleteUserSSHKeypair(ctx, ownerID)
163163

164164
newKeypair, err := CreateUserSSHKeypair(ctx, ownerID)

0 commit comments

Comments
 (0)