mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(server): correlationId (#8858)
This commit is contained in:
parent
6e6deec40c
commit
47fb9bd213
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export const clsConfig: ClsModuleOptions = {
|
||||||
const headerValues = req.headers['x-immich-cid'];
|
const headerValues = req.headers['x-immich-cid'];
|
||||||
const headerValue = Array.isArray(headerValues) ? headerValues[0] : headerValues;
|
const headerValue = Array.isArray(headerValues) ? headerValues[0] : headerValues;
|
||||||
const cid = headerValue || cls.get(CLS_ID);
|
const cid = headerValue || cls.get(CLS_ID);
|
||||||
cls.set(CLS_ID, headerValue);
|
cls.set(CLS_ID, cid);
|
||||||
res.header('x-immich-cid', cid);
|
res.header('x-immich-cid', cid);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue