Skip to content

Commit 165b68b

Browse files
authored
Merge pull request #642 from sparrowapp-dev/hotfix-socket
fix: hotfix for socket endpoint
2 parents 03e0877 + 34eda59 commit 165b68b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/billing/gateways/stripe-webhook.gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export enum PaymentEventType {
2929

3030
@Injectable()
3131
@WebSocketGateway({
32-
namespace: "stripe-events",
3332
cors: {
3433
origin: "*",
3534
methods: ["GET", "POST"],
3635
credentials: true,
3736
},
37+
path: process.env.APP_ENV === "PROD" ? "/v2/socket.io" : "/socket.io",
3838
transports: ["polling"],
3939
pingTimeout: 60000,
4040
pingInterval: 25000,

0 commit comments

Comments
 (0)