replace got http calls by @devoxa/paddle-sdk where possible

This commit is contained in:
m5r
2021-10-03 18:38:39 +02:00
parent 4ce6ccc142
commit 38c2edb8e4
3 changed files with 30 additions and 43 deletions

View File

@ -15,6 +15,5 @@ export default resolver.pipe(resolver.zod(Body), resolver.authorize(), async ({
}
const subscriptionId = subscription.paddleSubscriptionId;
const result = await updateSubscriptionPlan({ planId, subscriptionId });
console.log("result", result);
await updateSubscriptionPlan({ productId: planId, subscriptionId });
});