From 33000b629ab0fd4dd163c07837921c15cc552bc6 Mon Sep 17 00:00:00 2001 From: Nan Li Date: Mon, 2 Oct 2023 13:01:05 -0500 Subject: [PATCH] fixed the issue that export data will includes the draft evaluation data --- handlers/dataHandlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/dataHandlers.js b/handlers/dataHandlers.js index ab0050e..a18891b 100644 --- a/handlers/dataHandlers.js +++ b/handlers/dataHandlers.js @@ -902,7 +902,7 @@ SeerService.getCollectionsData = async function(cids, user) { }); // get all evaluation info - const evalQuery = {'slide_id': {'$in': slideIds}, 'creator': user}; + const evalQuery = {'slide_id': {'$in': slideIds}, 'creator': user, 'is_draft': false}; // if (uid) evalQuery.creator = uid; const evalData = await mongoDB.find('camic', 'evaluation', evalQuery, false);