Browse Source

fix: extract base id using `ncProjectId` since the property name is not yet updated

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/7169/head
Pranav C 11 months ago
parent
commit
adb419830c
  1. 2
      packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts

2
packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts

@ -31,7 +31,7 @@ export class AuthTokenStrategy extends PassportStrategy(Strategy, 'authtoken') {
const dbUser: Record<string, any> = await User.getWithRoles(
apiToken.fk_user_id,
{
baseId: req['ncBaseId'],
baseId: req['ncProjectId'],
...(req['ncWorkspaceId']
? { workspaceId: req['ncWorkspaceId'] }
: {}),

Loading…
Cancel
Save