* return 200 asap to paddle and queue webhook received

* paddle ids to int
This commit is contained in:
m5r
2021-10-01 23:04:12 +02:00
parent 188c028667
commit 771fea4d7b
15 changed files with 370 additions and 496 deletions

View File

@ -1,11 +1,11 @@
import { NotFoundError, resolver } from "blitz";
import { z } from "zod";
import { updateSubscriptionPlan } from "../../../integrations/paddle";
import db from "../../../db";
import db from "db";
import { updateSubscriptionPlan } from "integrations/paddle";
const Body = z.object({
planId: z.string(),
planId: z.number(),
});
export default resolver.pipe(resolver.zod(Body), resolver.authorize(), async ({ planId }, ctx) => {