From 064ab808515a4eca3e0673613a8228dd16139f8d Mon Sep 17 00:00:00 2001 From: Anand Suthar Date: Tue, 18 Jun 2024 21:48:23 +0530 Subject: [PATCH] refactor: added _id in projection when retrieving receptionist data --- app/api/receptionist/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/receptionist/route.ts b/app/api/receptionist/route.ts index 711f07e2..36751dd2 100644 --- a/app/api/receptionist/route.ts +++ b/app/api/receptionist/route.ts @@ -18,7 +18,7 @@ export async function GET(request: Request) { const collection = db.collection("receptionist"); const projection = { - _id: 0, + _id: 1, firstname: 1, lastname: 1, username: 1,