Skip to content

Commit

Permalink
fix cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-nhuttu committed Feb 16, 2024
1 parent 7cfc503 commit 3e79bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/cosmos/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CosmosClient } from "@azure/cosmos";
import { NextResponse } from "next/server";

const COSMOS_CONNECTION_STRING = process.env.COSMOS_CONNECTION_STRING;
const client = new CosmosClient(COSMOS_CONNECTION_STRING ?? "");
const COSMOS_CONNECTION_STRING = process.env.COSMOS_CONNECTION_STRING ?? "";
const client = new CosmosClient(COSMOS_CONNECTION_STRING);
const DB_ID = "nhuttudb";
const CONT_ID = "nhuttucont";

Expand Down

0 comments on commit 3e79bfa

Please sign in to comment.