From bfdef3ea466cc2adfb651abe64a4822faaa65e8b Mon Sep 17 00:00:00 2001 From: Priyanka Pradeep Date: Wed, 15 Jun 2022 12:46:44 +0530 Subject: [PATCH] fix --- models/observationSubmissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/observationSubmissions.js b/models/observationSubmissions.js index 041332a0..8f2bcf0a 100644 --- a/models/observationSubmissions.js +++ b/models/observationSubmissions.js @@ -93,7 +93,7 @@ module.exports = { }, compoundIndex: [ { - "name" :{ entityId: 1, observationId: 1, submissionNumber:1 }, + "name" :{ observationId: 1, entityId: 1, submissionNumber:1 }, "indexType" : { unique: true } } ]