From 5a2fc6eeef40f5d2bdd7e818c8a26993e8fb16f2 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 11 Sep 2025 21:08:17 +0200 Subject: [PATCH] Update models/repo/mirror_ssh_keypair.go Signed-off-by: techknowlogick --- models/repo/mirror_ssh_keypair.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo/mirror_ssh_keypair.go b/models/repo/mirror_ssh_keypair.go index fd72a4a8daf..15031731972 100644 --- a/models/repo/mirror_ssh_keypair.go +++ b/models/repo/mirror_ssh_keypair.go @@ -158,7 +158,7 @@ func DeleteUserSSHKeypair(ctx context.Context, ownerID int64) error { // RegenerateUserSSHKeypair regenerates an SSH keypair for the given owner func RegenerateUserSSHKeypair(ctx context.Context, ownerID int64) (*UserSSHKeypair, error) { var keypair *UserSSHKeypair - err := db.WithTx(ctx, func(ctx context.Context) error { + err := db.WithTx2(ctx, func(ctx context.Context) error { _ = DeleteUserSSHKeypair(ctx, ownerID) newKeypair, err := CreateUserSSHKeypair(ctx, ownerID)