Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((res) => {
const settings = build(normalize(res, { camelizeKeys: false }), 'settings', res.data.id);
const { settings_json } = settings;
// @TODO setConfUserSettings settings.settingsJson
this._setConfUserSettings(settings_json);
this._setAccountUserSettings(settings_json);
return settings_json;
})
)
const jobRunSelector = (
{ jobRuns, taskRuns, chainlinkNodes }: AppState,
jobRunId?: string,
): JobRun | undefined => {
if (jobRuns.items) {
const document = {
jobRuns: jobRuns.items,
taskRuns: taskRuns.items,
chainlinkNodes: chainlinkNodes.items,
}
return build(document, 'jobRuns', jobRunId)
}
return
}
const adminHeadSelector = (
headId: number | undefined,
state: AppState,
): Head => {
return build(state.adminHeads, 'items', headId)
}
.map((id) => build(transactions, 'items', id))
.filter((t) => t)
.map((id) => build(jobRuns, 'items', id))
.filter((r) => r)
export default ({ jobs }: Pick, id: string) => {
return build(jobs, 'items', id, { eager: true })
}
.then((res) => {
const { css } = build(normalize(res), 'themes', res.data.id);
this._setThemeData({ name, css });
return css;
});
})
return jobRunsIndex.items?.map(id => {
const document = {
jobRuns: jobRuns.items,
chainlinkNodes: chainlinkNodes.items,
}
return build(document, 'jobRuns', id)
})
}
export default ({ jobRuns }, id) => build(jobRuns, 'items', id)
return adminHeadsIndex.items.map(id =>
build({ adminHeads: adminHeads.items }, 'adminHeads', id),
)