From 649c6e3b3575cee5b3b48a24996997696e840394 Mon Sep 17 00:00:00 2001 From: sajdkabir Date: Thu, 26 Dec 2024 14:11:39 +0530 Subject: [PATCH] chore: return single item --- apps/backend/src/services/lib/item.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/services/lib/item.service.js b/apps/backend/src/services/lib/item.service.js index 585394ec..9d845777 100644 --- a/apps/backend/src/services/lib/item.service.js +++ b/apps/backend/src/services/lib/item.service.js @@ -18,7 +18,7 @@ const getInboxItems = async (me) => { } const getInboxItem = async (me, id) => { - const items = await Item.find({ + const items = await Item.findOne({ user: me, _id: id, isArchived: false,