Translations cleaning / workflows (#10125)

This commit is contained in:
Félix Malfait
2025-02-11 15:26:21 +01:00
committed by GitHub
parent 6da9976193
commit cc68deaab1
63 changed files with 376 additions and 164 deletions

View File

@ -2,6 +2,7 @@ import { UseFilters, UseGuards } from '@nestjs/common';
import { Args, Context, Mutation, Query, Resolver } from '@nestjs/graphql';
import { InjectRepository } from '@nestjs/typeorm';
import { SOURCE_LOCALE } from 'twenty-shared';
import { Repository } from 'typeorm';
import { ApiKeyTokenInput } from 'src/engine/core-modules/auth/dto/api-key-token.input';
@ -348,7 +349,7 @@ export class AuthResolver {
return await this.resetPasswordService.sendEmailPasswordResetLink(
resetToken,
emailPasswordResetInput.email,
context.req.headers['x-locale'] || 'en',
context.req.headers['x-locale'] || SOURCE_LOCALE,
);
}
@ -366,7 +367,7 @@ export class AuthResolver {
await this.authService.updatePassword(
id,
newPassword,
context.req.headers['x-locale'] || 'en',
context.req.headers['x-locale'] || SOURCE_LOCALE,
);
return await this.resetPasswordService.invalidatePasswordResetToken(id);