Merge pull request #746 from Tria-plc/alpha

Add seat block schedule id for consistency
This commit is contained in:
Stephanos A.
2026-07-16 20:13:02 +03:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "SeatBlock" ADD COLUMN "scheduleId" TEXT;
-- CreateIndex
CREATE INDEX "SeatBlock_scheduleId_idx" ON "SeatBlock"("scheduleId");

View File

@@ -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({