From 63ed12a7ae3ed405c72f151d852d484d7eedd69c Mon Sep 17 00:00:00 2001 From: Hope Tambala Date: Sun, 30 May 2021 08:55:23 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20Asset=20Forms=20were=20appearing=20under?= =?UTF-8?q?=20=C2=A8Custom=20Forms=C2=A8=20for=20individuals=20in=20the=20?= =?UTF-8?q?form=20gallery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/cached-resources/read.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/cached-resources/read.js b/modules/cached-resources/read.js index b15f9cac3..cfe85a49f 100644 --- a/modules/cached-resources/read.js +++ b/modules/cached-resources/read.js @@ -60,7 +60,11 @@ function customFormsQuery(surveyingOrganization) { return new Promise((resolve, reject) => { checkOnlineStatus().then((online) => { if (online) { - customQueryService(0, 5000, 'FormSpecificationsV2', 'organizations', surveyingOrganization).then(async (forms) => { + const parseParams = { + typeOfForm: 'Custom', + organizations: surveyingOrganization + }; + customMultiParamQueryService(5000, 'FormSpecificationsV2', parseParams).then(async (forms) => { if (forms !== null && forms !== undefined && forms !== '') { await storeData(forms, 'customForms'); resolve(JSON.parse(JSON.stringify(forms)));