From adb419830c77332945f1cfa5a03f3a15685b1b87 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 6 Dec 2023 10:32:09 +0530 Subject: [PATCH] fix: extract base id using `ncProjectId` since the property name is not yet updated Signed-off-by: Pranav C --- .../src/strategies/authtoken.strategy/authtoken.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts b/packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts index f666ac1b10..83c4fd48cc 100644 --- a/packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts +++ b/packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts @@ -31,7 +31,7 @@ export class AuthTokenStrategy extends PassportStrategy(Strategy, 'authtoken') { const dbUser: Record = await User.getWithRoles( apiToken.fk_user_id, { - baseId: req['ncBaseId'], + baseId: req['ncProjectId'], ...(req['ncWorkspaceId'] ? { workspaceId: req['ncWorkspaceId'] } : {}),