Skip to content

Commit

Permalink
fix(server): resolve cherry-pick issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jan 31, 2024
1 parent e3b8d0d commit e26d978
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/backend/server/src/plugins/payment/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,7 @@ export class SubscriptionResolver {
});

if (!session.url) {
throw new GraphQLError('Failed to create checkout session', {
extensions: {
status: HttpStatus[HttpStatus.BAD_GATEWAY],
code: HttpStatus.BAD_GATEWAY,
},
});
throw new BadGatewayException('Failed to create checkout session.');
}

return session.url;
Expand Down

0 comments on commit e26d978

Please sign in to comment.