Files
klz-cables.com/.pnpm-store/v10/files/44/3bda6a6819b0cba5a059c37a7565a9bdcd4796dfbdf7d014768199365139a4e0323ad00e1eba49231db96a4ec615e02149b1e069a625104f378019c7719d65
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

24 lines
652 B
Plaintext

import { sendEvent } from '../index.js';
import { oneWayHash } from '../oneWayHash.js';
export const adminInit = ({ headers, payload, user })=>{
const host = headers.get('host');
let domainID;
let userID;
if (host) {
domainID = oneWayHash(host, payload.secret);
}
if (user?.id) {
userID = oneWayHash(String(user.id), payload.secret);
}
// eslint-disable-next-line @typescript-eslint/no-floating-promises
sendEvent({
event: {
type: 'admin-init',
domainID: domainID,
userID: userID
},
payload
});
};
//# sourceMappingURL=adminInit.js.map