mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-09 20:57:43 +00:00
working with single upgrade
This commit is contained in:
@@ -7,15 +7,14 @@ import { PREMIUM_PLAN_NAME, PREMIUM_PLUS_PLAN_NAME } from "./seed";
|
||||
|
||||
export const polar = new Polar<DataModel>(components.polar);
|
||||
|
||||
export const MAX_FREE_TODOS = 5;
|
||||
export const MAX_PREMIUM_TODOS = 10;
|
||||
export const MAX_FREE_TODOS = 3;
|
||||
export const MAX_PREMIUM_TODOS = 6;
|
||||
|
||||
export const { generateCheckoutLink } = polar.checkoutApi({
|
||||
getUserInfo: async (ctx) => {
|
||||
const user = await ctx.runQuery(api.example.getCurrentUser);
|
||||
return {
|
||||
userId: user._id,
|
||||
email: user.email,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user