From 6dd493b7351bfe6526dd8df62c7706c5769a520f Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Fri, 18 Jul 2025 21:56:38 -0500 Subject: [PATCH] chore: remove transaction --- apps/platform/src/users/UserDeviceJob.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/platform/src/users/UserDeviceJob.ts b/apps/platform/src/users/UserDeviceJob.ts index 47f927e5..de258b60 100644 --- a/apps/platform/src/users/UserDeviceJob.ts +++ b/apps/platform/src/users/UserDeviceJob.ts @@ -18,12 +18,10 @@ export default class UserDeviceJob extends Job { const attempts = job.options.attempts ?? 1 const attemptsMade = job.state.attemptsMade ?? 0 - await App.main.db.transaction(async (trx) => { - try { - await saveDevice(project_id, device, trx) - } catch (error) { - if (attemptsMade < (attempts - 1)) throw error - } - }) + try { + await saveDevice(project_id, device) + } catch (error) { + if (attemptsMade < (attempts - 1)) throw error + } } }