forked from Yara724/api
update the fanavaran for both tejarat no and parsian clients , dont forget about the env files
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { HttpModule } from "@nestjs/axios";
|
||||
import { Module } from "@nestjs/common";
|
||||
import { ConfigModule, ConfigService } from "@nestjs/config";
|
||||
import { createHttpModuleOptions } from "src/core/config/http-proxy.factory";
|
||||
import { MongooseModule } from "@nestjs/mongoose";
|
||||
import { AiModule } from "src/ai/ai.module";
|
||||
import { AuthModule } from "src/auth/auth.module";
|
||||
@@ -21,7 +23,11 @@ import { ExpertClaimService } from "./expert-claim.service";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
HttpModule,
|
||||
HttpModule.registerAsync({
|
||||
imports: [ConfigModule],
|
||||
inject: [ConfigService],
|
||||
useFactory: createHttpModuleOptions,
|
||||
}),
|
||||
SandHubModule,
|
||||
MongooseModule.forFeature([
|
||||
{ name: ClaimFactorsImage.name, schema: ClaimFactorsImageSchema },
|
||||
|
||||
@@ -3466,17 +3466,7 @@ export class ExpertClaimService {
|
||||
});
|
||||
}
|
||||
|
||||
const fanavaranExpertise = !needsFactorUpload
|
||||
? await this.claimRequestManagementService.autoSubmitFanavaranExpertiseOnExpertReply(
|
||||
claimRequestId,
|
||||
)
|
||||
: {
|
||||
attempted: false,
|
||||
submitted: false,
|
||||
skipped: true,
|
||||
skipReason:
|
||||
"Expertise submit waits until factor-needed repair lines are validated.",
|
||||
};
|
||||
// Fanavaran expertise is now triggered on owner final sign, not here.
|
||||
|
||||
return {
|
||||
claimRequestId,
|
||||
@@ -3490,7 +3480,6 @@ export class ExpertClaimService {
|
||||
mixedPricingAndFactors: mixedFactorAndPrice,
|
||||
allPartsFactorNeeded: !!needsFactorUpload && !!allFactorLines,
|
||||
isFinalReplyAfterObjection,
|
||||
fanavaranExpertise,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user