Final backend fixes and path stabilization

This commit is contained in:
Hamza-Ayed
2026-04-17 00:14:47 +03:00
parent e457313e8f
commit 6fb67282ba
7 changed files with 14 additions and 12 deletions

View File

@@ -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');
}

View File

@@ -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');
}
}