Files
klz-cables.com/.pnpm-store/v10/files/68/ae3ad72f9dc8a516c16d2bd6cd6f8678b3b293a7bbddace2e80fd25d8141b98c05e82815734a8acc7299e65da8324f76239fe662dd4f3a54b91ffd68131fa4
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

16 lines
776 B
Plaintext

export const rollbackTransaction = async function rollbackTransaction(incomingID = '') {
const transactionID = incomingID instanceof Promise ? await incomingID : incomingID;
// if multiple operations are using the same transaction, the first will flow through and delete the session.
// subsequent calls should be ignored.
if (!this.sessions[transactionID]) {
return;
}
const session = this.sessions[transactionID];
// Delete from registry FIRST to prevent race conditions
// This ensures other operations can't retrieve this session while we're ending it
delete this.sessions[transactionID];
// end the session promise in failure by calling reject
await session.reject();
};
//# sourceMappingURL=rollbackTransaction.js.map