save
This commit is contained in:
parent
6f4870f09e
commit
1cd96a0b79
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
export const runtime = "nodejs";
|
||||
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import Stripe from "stripe";
|
||||
import { getStripe } from "@/lib/stripe/service";
|
||||
import { XeroClient, Invoice, CurrencyCode } from "xero-node";
|
||||
import { db } from "@/lib/db";
|
||||
import {
|
||||
|
|
@ -12,7 +12,7 @@ import {
|
|||
import { eq } from "drizzle-orm";
|
||||
|
||||
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);
|
||||
const stripe = getStripe();
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
// --------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue