update price
This commit is contained in:
@@ -34,7 +34,10 @@ export class DesignRequestService {
|
||||
if (count <= 30) {
|
||||
return +this.configService.getOrThrow<number>('DESIGN_PRICE_10_TO_30');
|
||||
}
|
||||
return +this.configService.getOrThrow<number>('DESIGN_PRICE_ABOVE_30');
|
||||
if (count <= 70) {
|
||||
return +this.configService.getOrThrow<number>('DESIGN_PRICE_30_TO_70');
|
||||
}
|
||||
return +this.configService.getOrThrow<number>('DESIGN_PRICE_ABOVE_70');
|
||||
}
|
||||
|
||||
async createDesignRequest(dto: CreateDesignRequestDto, businessId: string) {
|
||||
@@ -79,7 +82,7 @@ export class DesignRequestService {
|
||||
),
|
||||
);
|
||||
invoiceData = data.data.invoice
|
||||
} catch (error: unknown) {
|
||||
} catch (error: unknown) {
|
||||
this.logger.error(
|
||||
`Error create invoice: ${error instanceof Error ? error.message : 'Unknown error'}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user