From 3e79bfa688bb08a26b60323dec15af0477c24030 Mon Sep 17 00:00:00 2001 From: Niko Huttu Date: Fri, 16 Feb 2024 15:00:00 +0200 Subject: [PATCH] fix cosmos --- src/app/api/cosmos/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/cosmos/route.ts b/src/app/api/cosmos/route.ts index 8b91c96..2946791 100644 --- a/src/app/api/cosmos/route.ts +++ b/src/app/api/cosmos/route.ts @@ -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";