Skip to content

Commit e6fa7ae

Browse files
SPIRIT-0: fix Buffer not defined in cloudflare workers
1 parent 173cd20 commit e6fa7ae

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

functions/stripe/payment-intent/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { logger } from "@logger-utils";
66
import { isStripePaymentIntent, StripeEvent } from "@stripe-entity";
77
import { errors } from "@error-handling-utils";
88
import { requestHandler } from "@decorator-utils";
9+
import { Buffer } from "node:buffer";
910

1011
// eslint-disable-next-line import/no-restricted-paths
1112
import { stripe } from "@stripe-adapter";

functions/stripe/session-result/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { LoggerUseCaseEnum } from "@logger-entity";
1717
// eslint-disable-next-line import/no-restricted-paths
1818
import { stripe } from "@stripe-adapter";
1919
import { ENV } from "@env-utils";
20+
import { Buffer } from "node:buffer";
2021

2122
export const POST: PagesFunction = async (context) => {
2223
const { request } = context;

0 commit comments

Comments
 (0)