mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
fix(server): resolve cherry-pick issue
This commit is contained in:
@@ -255,12 +255,7 @@ export class SubscriptionResolver {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!session.url) {
|
if (!session.url) {
|
||||||
throw new GraphQLError('Failed to create checkout session', {
|
throw new BadGatewayException('Failed to create checkout session.');
|
||||||
extensions: {
|
|
||||||
status: HttpStatus[HttpStatus.BAD_GATEWAY],
|
|
||||||
code: HttpStatus.BAD_GATEWAY,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return session.url;
|
return session.url;
|
||||||
|
|||||||
Reference in New Issue
Block a user