diff --git a/packages/nocodb/src/models/User.ts b/packages/nocodb/src/models/User.ts index 2c29647021..b2d300d508 100644 --- a/packages/nocodb/src/models/User.ts +++ b/packages/nocodb/src/models/User.ts @@ -187,7 +187,7 @@ export default class User implements UserType { ncMeta, ); - if(!userRefreshToken){ + if (!userRefreshToken) { return null; } diff --git a/packages/nocodb/src/services/users/users.service.ts b/packages/nocodb/src/services/users/users.service.ts index ff18357967..7f5dd914ed 100644 --- a/packages/nocodb/src/services/users/users.service.ts +++ b/packages/nocodb/src/services/users/users.service.ts @@ -27,7 +27,7 @@ import NcPluginMgrv2 from '~/helpers/NcPluginMgrv2'; import { NcError } from '~/helpers/catchError'; import { BasesService } from '~/services/bases.service'; import { extractProps } from '~/helpers/extractProps'; -import UserRefreshToken from "~/models/UserRefreshToken"; +import UserRefreshToken from '~/models/UserRefreshToken'; @Injectable() export class UsersService { @@ -388,8 +388,8 @@ export class UsersService { await UserRefreshToken.insert({ token: refreshToken, - fk_user_id: user.id - }) + fk_user_id: user.id, + }); setTokenCookie(param.res, refreshToken); @@ -508,8 +508,8 @@ export class UsersService { await UserRefreshToken.insert({ token: refreshToken, - fk_user_id: user.id - }) + fk_user_id: user.id, + }); setTokenCookie(param.res, refreshToken);