From 47fb9bd2136abb84020cca04d2f2f4eadb625a1f Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Tue, 16 Apr 2024 17:31:49 -0400 Subject: [PATCH] fix(server): correlationId (#8858) --- server/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, },