Skip to content

Commit 5e93071

Browse files
committed
fix types
1 parent ff37607 commit 5e93071

File tree

1 file changed

+2
-2
lines changed
  • web/src/app/api/stripe/buy-credits

1 file changed

+2
-2
lines changed

web/src/app/api/stripe/buy-credits/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getUserCostPerCredit, processAndGrantCredit } from '@codebuff/billing'
1+
import { processAndGrantCredit } from '@codebuff/billing'
22
import db from '@codebuff/common/db'
33
import * as schema from '@codebuff/common/db/schema'
44
import { convertCreditsToUsdCents } from '@codebuff/common/util/currency'
@@ -64,7 +64,7 @@ export async function POST(req: NextRequest) {
6464
)
6565
}
6666

67-
const centsPerCredit = await getUserCostPerCredit(userId)
67+
const centsPerCredit = 1
6868
const amountInCents = convertCreditsToUsdCents(credits, centsPerCredit)
6969

7070
if (amountInCents <= 0) {

0 commit comments

Comments
 (0)