automatiacally previous stages submitted

This commit is contained in:
2026-11-11 18:36:10 +03:30
parent 84b92eb55a
commit 8b9dabc9f2
8 changed files with 437 additions and 23 deletions
@@ -98,7 +98,13 @@ export class FanavaranHullReadController {
private clientKey(client: string) {
if (!isFanavaranClientKey(client))
throw new BadRequestException("Invalid Fanavaran client");
throw new BadRequestException({
statusCode: 400,
code: "FANAVARAN_CLIENT_INVALID",
field: "client",
allowedClients: FANAVARAN_CLIENT_SWAGGER_ENUM,
message: "شرکت بیمه انتخاب‌شده برای سرویس فناوران معتبر نیست.",
});
return normalizeFanavaranClientKey(client);
}
}