forked from Yara724/api
fix: harden profile updates and localize public errors in Persian
Preserve actor and user profile fields during partial updates and validate supported personal data. Add Persian HTTP error handling, validation translations, regression tests, and audit documentation.
This commit is contained in:
+5
-1
@@ -1,6 +1,8 @@
|
||||
import { PersianErrorFilter } from "./common/errors/persian-error.filter";
|
||||
import { PersianErrorInterceptor } from "./common/errors/persian-error.interceptor";
|
||||
import { ManagementModule } from "./management/management.module";
|
||||
import { join } from "node:path";
|
||||
import { APP_INTERCEPTOR, APP_PIPE } from "@nestjs/core";
|
||||
import { APP_FILTER, APP_INTERCEPTOR, APP_PIPE } from "@nestjs/core";
|
||||
import { Module } from "@nestjs/common";
|
||||
import { ConfigModule, ConfigService } from "@nestjs/config";
|
||||
import { HttpModule } from "@nestjs/axios";
|
||||
@@ -73,6 +75,8 @@ import { PriceEstimationModule } from "./price-estimation/price-estimation.modul
|
||||
],
|
||||
controllers: [],
|
||||
providers: [
|
||||
{ provide: APP_FILTER, useClass: PersianErrorFilter },
|
||||
{ provide: APP_INTERCEPTOR, useClass: PersianErrorInterceptor },
|
||||
{
|
||||
provide: APP_INTERCEPTOR,
|
||||
useClass: UnicodeDigitsNormalizeInterceptor,
|
||||
|
||||
Reference in New Issue
Block a user