From 2fbc8515166c4a787c4b1de71dc5a546950d18a2 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Sat, 3 May 2025 14:02:42 +0700 Subject: [PATCH] feat: fix nullable and card --- libraries/nestjs-libraries/src/agent/agent.graph.service.ts | 1 + libraries/nestjs-libraries/src/services/stripe.service.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/nestjs-libraries/src/agent/agent.graph.service.ts b/libraries/nestjs-libraries/src/agent/agent.graph.service.ts index c63a4eeb..de8cfcca 100644 --- a/libraries/nestjs-libraries/src/agent/agent.graph.service.ts +++ b/libraries/nestjs-libraries/src/agent/agent.graph.service.ts @@ -75,6 +75,7 @@ const contentZod = ( content: z.string().describe('Content for the new post'), website: z .string() + .nullable() .optional() .describe( "Website for the new post if exists, If one of the post present a brand, website link must be to the root domain of the brand or don't include it, website url should contain the brand name" diff --git a/libraries/nestjs-libraries/src/services/stripe.service.ts b/libraries/nestjs-libraries/src/services/stripe.service.ts index 83c6e445..45bb2256 100644 --- a/libraries/nestjs-libraries/src/services/stripe.service.ts +++ b/libraries/nestjs-libraries/src/services/stripe.service.ts @@ -75,7 +75,7 @@ export class StripeService { return current; } return prev; - }); + }, {created: -100} as Stripe.PaymentMethod); try { const paymentIntent = await stripe.paymentIntents.create({