fix: elint
parent
3aa1497786
commit
997badd17c
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
const COMBINED_UID_JOINSTR = ', ';
|
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 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 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 getUidParamsFromName = (uidKeys, configName) => configName.split(COMBINED_UID_JOINSTR).reduce((akku, param, i) => ({ ...akku, [uidKeys[i]]: param }), {});
|
||||||
|
|
||||||
const getCoreStore = () => {
|
const getCoreStore = () => {
|
||||||
return strapi.store({ type: 'plugin', name: 'config-sync' });
|
return strapi.store({ type: 'plugin', name: 'config-sync' });
|
||||||
|
|
Loading…
Reference in New Issue