Files
klz-cables.com/.pnpm-store/v10/files/65/515ae539d6a29bcbc7ae5a5c52f3c35b5e6c6463d727524d66a453f602f2c176d818e9caa0bf9e2802dc1c07fce5fcebcd7ff0237ded4f3ca14a1ea526a792
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

18 lines
686 B
Plaintext

export const commitTransaction = async function commitTransaction(incomingID = '') {
const transactionID = incomingID instanceof Promise ? await incomingID : incomingID;
// if the session was deleted it has already been aborted
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];
try {
await session.resolve();
} catch (_) {
await session.reject();
}
};
//# sourceMappingURL=commitTransaction.js.map