diff --git a/src/utils/index.ts b/src/utils/index.ts index ea120d0e..c9b5f605 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -179,7 +179,7 @@ export async function managedTransaction ( await trx.commit() return response } catch (error) { - trx.rollback() + await trx.rollback() throw error } }