Scheduling infrastructure for absolutely everyone.
fix: alby payment could not be created (#12460)
Morgan00553e897bca
diff --git a/packages/app-store/alby/lib/PaymentService.ts b/packages/app-store/alby/lib/PaymentService.tsindex 9974f1aa252..71e9c3e8514 100644--- a/packages/app-store/alby/lib/PaymentService.ts+++ b/packages/app-store/alby/lib/PaymentService.ts@@ -72,7 +72,10 @@ export class PaymentService implements IAbstractPaymentService {amount: payment.amount,externalId: invoice.paymentRequest,currency: payment.currency,- data: Object.assign({}, { invoice }) as unknown as Prisma.InputJsonValue,+ data: Object.assign(+ {},+ { invoice: { ...invoice, isPaid: await invoice.isPaid() } }+ ) as unknown as Prisma.InputJsonValue,fee: 0,refunded: false,success: false,@@ -84,7 +87,7 @@ export class PaymentService implements IAbstractPaymentService {}return paymentData;} catch (error) {- log.error("Alby: Payment could not be created", bookingId);+ log.error("Alby: Payment could not be created", bookingId, JSON.stringify(error));throw new Error(ErrorCode.PaymentCreationFailure);}}