From 997badd17ce73bb20707052a4b4b1579df989d78 Mon Sep 17 00:00:00 2001 From: tilman Date: Sat, 15 Jan 2022 19:34:28 +0100 Subject: [PATCH] fix: elint --- server/utils/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/utils/index.js b/server/utils/index.js index ad31560..0dac031 100644 --- a/server/utils/index.js +++ b/server/utils/index.js @@ -2,10 +2,10 @@ const COMBINED_UID_JOINSTR = ', '; -const escapeUid = (uid) => uid.replace(/\,/g,'').replace(COMBINED_UID_JOINSTR, ''); +const escapeUid = (uid) => uid.replace(/,/g, '').replace(COMBINED_UID_JOINSTR, ''); const getCombinedUid = (uidKeys, params) => uidKeys.map((uidKey) => params[uidKey]).join(COMBINED_UID_JOINSTR); -const getCombinedUidWhereFilter = (uidKeys, params) => uidKeys.reduce(((akku, uidKey) => ({ ...akku, [uidKey]: params[uidKey] })),{}); -const getUidParamsFromName = (uidKeys, configName) => configName.split(COMBINED_UID_JOINSTR).reduce((akku, param, i) => ({...akku, [uidKeys[i]]: param}), {}); +const getCombinedUidWhereFilter = (uidKeys, params) => uidKeys.reduce(((akku, uidKey) => ({ ...akku, [uidKey]: params[uidKey] })), {}); +const getUidParamsFromName = (uidKeys, configName) => configName.split(COMBINED_UID_JOINSTR).reduce((akku, param, i) => ({ ...akku, [uidKeys[i]]: param }), {}); const getCoreStore = () => { return strapi.store({ type: 'plugin', name: 'config-sync' });