chore: remove transaction

This commit is contained in:
Chris Anderson 2025-07-18 21:56:38 -05:00
parent 448d4508aa
commit 6dd493b735

View file

@ -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
}
}
}