chore: lint

This commit is contained in:
Bereket Engida
2025-04-10 22:30:06 +03:00
parent 9efcd56f33
commit 413bd9a95d

View File

@@ -68,9 +68,12 @@ export const stripe = <O extends StripeOptions>(options: O) => {
ctx.body?.referenceId || ctx.query?.referenceId || session.user.id;
if (ctx.body?.referenceId && !options.subscription?.authorizeReference) {
logger.error(`Passing referenceId into a subscription action isn't allowed if subscription.authorizeReference isn't defined in your stripe plugin config.`)
logger.error(
`Passing referenceId into a subscription action isn't allowed if subscription.authorizeReference isn't defined in your stripe plugin config.`,
);
throw new APIError("BAD_REQUEST", {
message: "Reference id is not allowed. Read server logs for more details.",
message:
"Reference id is not allowed. Read server logs for more details.",
});
}
const isAuthorized = ctx.body?.referenceId