forked from Yara724/api
automatiacally previous stages submitted
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user