handle undefined / null commit

This commit is contained in:
Fendy Heryanto
2025-10-20 15:19:14 +07:00
parent c312a96802
commit 0646491665

View File

@@ -63,7 +63,7 @@ export class MetaDependencyEventHandler {
);
}
}
await trxNcMeta.commit();
await trxNcMeta?.commit();
} catch (ex) {
await trxNcMeta?.rollback();
throw ex;