You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try {
await Connection.transaction({ models: [ModelClass] }, (ModelClassTx) => {
// [Job 1] do something using ModelClassTx
throw new Error('An intentional error');
// [Job 2] do something using ModelClassTx
return Promise.resolve();
});
} catch (error) {
return { error };
}
I expect the above code affect nothing to db, but Job 1 is committed!
Exactly, the job is committed when MySQLAdapter::rollbackTransaction is executed.
The text was updated successfully, but these errors were encountered:
I expect the above code affect nothing to db, but
Job 1
is committed!Exactly, the job is committed when
MySQLAdapter::rollbackTransaction
is executed.The text was updated successfully, but these errors were encountered: