Skip to content

Commit

Permalink
refactor: added _id in projection when retrieving receptionist data
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 18, 2024
1 parent da471cc commit 064ab80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/receptionist/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 064ab80

Please sign in to comment.