refactor: move billing mode inside folder

This commit is contained in:
moonrailgun 2024-10-07 15:09:32 +08:00
parent 6f89d0f2d3
commit 76b5d1bb1e
3 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ import {
updateSubscription,
cancelSubscription as lsCancelSubscription,
} from '@lemonsqueezy/lemonsqueezy.js';
import { env } from '../utils/env.js';
import { prisma } from './_client.js';
import { env } from '../../utils/env.js';
import { prisma } from '../_client.js';
if (env.billing.lemonSqueezy.apiKey) {
lemonSqueezySetup({

View File

@ -2,7 +2,7 @@ import { Router, raw } from 'express';
import crypto from 'crypto';
import { env } from '../utils/env.js';
import { get } from 'lodash-es';
import { checkIsValidProduct } from '../model/billing.js';
import { checkIsValidProduct } from '../model/billing/index.js';
import { prisma } from '../model/_client.js';
import dayjs from 'dayjs';

View File

@ -14,7 +14,7 @@ import {
createCheckoutBilling,
getTierNameByvariantId,
SubscriptionTierType,
} from '../../model/billing.js';
} from '../../model/billing/index.js';
import { LemonSqueezySubscriptionModelSchema } from '../../prisma/zod/lemonsqueezysubscription.js';
export const billingRouter = router({