Fix linter and remove console logs

This commit is contained in:
Charles Bochet
2023-11-20 16:54:51 +01:00
parent 189586830e
commit 0ace17df82
16 changed files with 57 additions and 109 deletions

View File

@ -126,7 +126,6 @@ export class AuthResolver {
@Args() args: ApiKeyTokenInput,
@AuthWorkspace() { id: workspaceId }: Workspace,
): Promise<ApiKeyToken | undefined> {
console.log('toto');
return await this.tokenService.generateApiKeyToken(
workspaceId,
args.apiKeyId,

View File

@ -55,8 +55,6 @@ export class TokenService {
workspaceId: user.defaultWorkspace.id,
};
console.log(jwtPayload);
return {
token: this.jwtService.sign(jwtPayload),
expiresAt,
@ -79,12 +77,9 @@ export class TokenService {
const refreshToken =
this.refreshTokenRepository.create(refreshTokenPayload);
console.log(refreshToken);
await this.refreshTokenRepository.save(refreshToken);
console.log('toto');
return {
token: this.jwtService.sign(jwtPayload, {
secret,