From e060adbdd45e826e3d5c15b071a68ff00240d228 Mon Sep 17 00:00:00 2001 From: Vins Date: Fri, 11 Oct 2024 09:37:25 +0200 Subject: [PATCH 1/4] Sentry logs --- src/services/common/IdNotService/IdNotService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/common/IdNotService/IdNotService.ts b/src/services/common/IdNotService/IdNotService.ts index e714bcf3..24bd6792 100644 --- a/src/services/common/IdNotService/IdNotService.ts +++ b/src/services/common/IdNotService/IdNotService.ts @@ -11,6 +11,7 @@ import { EOfficeStatus } from "@prisma/client"; import OfficeRolesService from "@Services/super-admin/OfficeRolesService/OfficeRolesService"; import DeedTypesService from "@Services/super-admin/DeedTypesService/DeedTypesService"; import DocumentTypesService from "@Services/super-admin/DocumentTypesService/DocumentTypesService"; +import * as Sentry from "@sentry/node"; interface IIdNotToken { access_token: string; @@ -385,6 +386,7 @@ export default class IdNotService extends BaseService { console.log("userData", userData); } catch (error) { console.error("Error fetching " + `${this.variables.IDNOT_API_BASE_URL}/api/pp/v2/rattachements/${decodedToken.profile_idn}?`, error); + Sentry.captureException(error); return null; } @@ -401,6 +403,7 @@ export default class IdNotService extends BaseService { ).json()) as IOfficeLocation; } catch (error) { console.error("Error fetching" + `${this.variables.IDNOT_API_BASE_URL + userData.entite.locationsUrl}` , error); + Sentry.captureException(error); return null; } From c981b447b672dd323adcd71fdb682a4033d3574d Mon Sep 17 00:00:00 2001 From: Vins Date: Thu, 17 Oct 2024 14:51:53 +0200 Subject: [PATCH 2/4] Augment proof timeout --- .../common/AnchoringProofService/AnchoringProofService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/common/AnchoringProofService/AnchoringProofService.ts b/src/services/common/AnchoringProofService/AnchoringProofService.ts index 04395f5e..6e0dd4cb 100644 --- a/src/services/common/AnchoringProofService/AnchoringProofService.ts +++ b/src/services/common/AnchoringProofService/AnchoringProofService.ts @@ -43,7 +43,7 @@ export default class AnchoringProofService extends BaseService { `; - await page.setContent(htmlContent, { waitUntil: "networkidle0", timeout: 60000 }); + await page.setContent(htmlContent, { waitUntil: "networkidle0", timeout: 1200000 }); await page.addStyleTag({ content: ` @page { From 738e8c08eb317fce868ad8e4779fb37ae7bd67f6 Mon Sep 17 00:00:00 2001 From: Vins Date: Fri, 18 Oct 2024 09:50:19 +0200 Subject: [PATCH 3/4] Added sepa --- src/services/common/StripeService/StripeService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/common/StripeService/StripeService.ts b/src/services/common/StripeService/StripeService.ts index 72774210..20deddcf 100644 --- a/src/services/common/StripeService/StripeService.ts +++ b/src/services/common/StripeService/StripeService.ts @@ -33,7 +33,7 @@ export default class StripeService { return this.client.checkout.sessions.create({ mode: "subscription", - payment_method_types: ["card"], + payment_method_types: ["card", "sepa_debit"], billing_address_collection: "auto", line_items: [ { From f788c1df1411d4f9ac839206acdc6564d92da37e Mon Sep 17 00:00:00 2001 From: Vins Date: Mon, 21 Oct 2024 09:36:08 +0200 Subject: [PATCH 4/4] Logs --- src/app/api/idnot/UserController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/api/idnot/UserController.ts b/src/app/api/idnot/UserController.ts index 54e95067..41cfb63a 100644 --- a/src/app/api/idnot/UserController.ts +++ b/src/app/api/idnot/UserController.ts @@ -125,6 +125,7 @@ export default class UserController extends ApiController { const accessToken = this.authService.generateAccessToken(payload); const refreshToken = this.authService.generateRefreshToken(payload); + console.log("SUCCESSFUL LOGIN"); this.httpSuccess(response, { accessToken, refreshToken }); } catch (error) {