From 4d84a74b98c1686ab0ad7258f52d3836d17b440f Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Tue, 24 Sep 2024 12:54:24 -0400 Subject: [PATCH] chore: use tx --- server/datastore/mysql/apple_mdm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/datastore/mysql/apple_mdm.go b/server/datastore/mysql/apple_mdm.go index f9fca11978b0..c0e7a07b1e86 100644 --- a/server/datastore/mysql/apple_mdm.go +++ b/server/datastore/mysql/apple_mdm.go @@ -326,7 +326,7 @@ func (ds *Datastore) deleteMDMAppleConfigProfileByIDOrUUID(ctx context.Context, arg = id stmt += `profile_id = ?` } - res, err := ds.writer(ctx).ExecContext(ctx, stmt, arg) + res, err := tx.ExecContext(ctx, stmt, arg) if err != nil { return ctxerr.Wrap(ctx, err) }