0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00

fix(server): correlationId (#8858)

This commit is contained in:
Jason Rasmussen 2024-04-16 17:31:49 -04:00 committed by GitHub
parent 6e6deec40c
commit 47fb9bd213
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ export const clsConfig: ClsModuleOptions = {
const headerValues = req.headers['x-immich-cid'];
const headerValue = Array.isArray(headerValues) ? headerValues[0] : headerValues;
const cid = headerValue || cls.get(CLS_ID);
cls.set(CLS_ID, headerValue);
cls.set(CLS_ID, cid);
res.header('x-immich-cid', cid);
},
},