Final backend fixes and path stabilization
This commit is contained in:
@@ -82,7 +82,7 @@ export class GeminiExtractorService {
|
||||
const cleanedJson = responseText.replace(/```json|```/g, '').trim();
|
||||
|
||||
return JSON.parse(cleanedJson);
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
this.logger.error(`AI Extraction failed: ${error.message}`);
|
||||
throw new InternalServerErrorException('AI Extraction failed');
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export class JoFotaraGatewayService {
|
||||
);
|
||||
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
this.logger.error(`JoFotara API Error: ${error.response?.data || error.message}`);
|
||||
throw new InternalServerErrorException(
|
||||
`Failed to submit invoice to JoFotara: ${error.response?.data?.message || 'Unknown Error'}`,
|
||||
@@ -72,7 +72,7 @@ export class JoFotaraGatewayService {
|
||||
},
|
||||
});
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
throw new InternalServerErrorException('Failed to check invoice status');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user