fix: lint
This commit is contained in:
@@ -55,8 +55,8 @@ export default async function({login, q, imports, data, account}, {enabled = fal
|
|||||||
|
|
||||||
//Read fetched data
|
//Read fetched data
|
||||||
const exported = await Promise.all(
|
const exported = await Promise.all(
|
||||||
(await imports.fs.readdir(`${imports.__module(import.meta.url)}/s3si/${source == "mocks" ? "mocks" : "export"}`))
|
(await imports.fs.readdir(`${imports.__module(import.meta.url)}/s3si/${source === "mocks" ? "mocks" : "export"}`))
|
||||||
.map(async file => JSON.parse(await imports.fs.readFile(`${imports.__module(import.meta.url)}/s3si/${source == "mocks" ? "mocks" : "export"}/${file}`))),
|
.map(async file => JSON.parse(await imports.fs.readFile(`${imports.__module(import.meta.url)}/s3si/${source === "mocks" ? "mocks" : "export"}/${file}`))),
|
||||||
)
|
)
|
||||||
const summary = exported.filter(({type}) => type === "SUMMARY").at(0)
|
const summary = exported.filter(({type}) => type === "SUMMARY").at(0)
|
||||||
if (!summary)
|
if (!summary)
|
||||||
|
|||||||
Reference in New Issue
Block a user