From c321c839160b6efee3f3aacc3a56ab95d59e9e8b Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Mon, 4 Dec 2023 17:10:19 +0000 Subject: [PATCH] Update packages/server/src/middleware/currentapp.ts Co-authored-by: Sam Rose --- packages/server/src/middleware/currentapp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/middleware/currentapp.ts b/packages/server/src/middleware/currentapp.ts index 8fca5e0c5c..984dd8e5e9 100644 --- a/packages/server/src/middleware/currentapp.ts +++ b/packages/server/src/middleware/currentapp.ts @@ -72,7 +72,7 @@ export default async (ctx: UserCtx, next: any) => { const userId = ctx.user ? generateUserMetadataID(ctx.user._id!) : undefined - // if the user not in the right tenant then make to wipe their cookie + // if the user is not in the right tenant then make sure to wipe their cookie // also cleanse any information about them that has been allocated // this avoids apps making calls to say the worker which are cross tenant, // we simply remove the authentication