Skip to content

High performance self-hosted photo and video management solution.

fix(server): correlationId (#8858)

Jason Rasmussen47fb9bd2136a
diff --git a/server/src/config.ts b/server/src/config.ts
index 326613f26a..068d0b3a9f 100644
--- a/server/src/config.ts
+++ b/server/src/config.ts
@@ -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);
},
},