Browse Source

chore: lint

pull/8027/head
Pranav C 8 months ago
parent
commit
90a825a4f5
  1. 2
      packages/nocodb/src/models/User.ts
  2. 10
      packages/nocodb/src/services/users/users.service.ts

2
packages/nocodb/src/models/User.ts

@ -187,7 +187,7 @@ export default class User implements UserType {
ncMeta,
);
if(!userRefreshToken){
if (!userRefreshToken) {
return null;
}

10
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);

Loading…
Cancel
Save