diff --git a/apps/edr-passenger-api/prisma/migrations/20260716170852_add_seat_block_schedule_id/migration.sql b/apps/edr-passenger-api/prisma/migrations/20260716170852_add_seat_block_schedule_id/migration.sql new file mode 100644 index 000000000..11fb856c9 --- /dev/null +++ b/apps/edr-passenger-api/prisma/migrations/20260716170852_add_seat_block_schedule_id/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "SeatBlock" ADD COLUMN "scheduleId" TEXT; + +-- CreateIndex +CREATE INDEX "SeatBlock_scheduleId_idx" ON "SeatBlock"("scheduleId"); diff --git a/apps/edr-passenger-api/src/modules/payments/payments.service.ts b/apps/edr-passenger-api/src/modules/payments/payments.service.ts index 8bf07c6bf..a9e4557f1 100644 --- a/apps/edr-passenger-api/src/modules/payments/payments.service.ts +++ b/apps/edr-passenger-api/src/modules/payments/payments.service.ts @@ -432,8 +432,8 @@ export class PaymentsService { expiresAt: snapshot.expiresAt ? new Date(snapshot.expiresAt) : null, failureCode: snapshot.failureCode ?? null, failureMessage: snapshot.failureMessage ?? null, - rawInitiation: snapshot.providerResponse - ? (snapshot.providerResponse as unknown as Prisma.InputJsonValue) + rawInitiation: (snapshot as any).providerResponse + ? ((snapshot as any).providerResponse as unknown as Prisma.InputJsonValue) : Prisma.DbNull, }; return this.prisma.paymentIntent.upsert({