mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-13 05:48:32 +03:00
Linting errors
This commit is contained in:
@@ -14,6 +14,6 @@ export default {
|
|||||||
},
|
},
|
||||||
success: {
|
success: {
|
||||||
update: 'All sheets updated',
|
update: 'All sheets updated',
|
||||||
export: dest => `All resources exported to the file: ${dest}`,
|
export: dest => `All resources exported to the file: ${dest}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
retrieveAll (fileDest) {
|
retrieveAll (fileDest) {
|
||||||
if (!fileDest) return Promise.reject(new Error(copy.errors.export.fileMissing))
|
if (!fileDest) return Promise.reject(new Error(copy.errors.export.fileMissing))
|
||||||
|
|
||||||
const indexedData = {}
|
const indexedData = {}
|
||||||
const urls = []
|
const urls = []
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ function camelize (str) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function exportToFile(fileDest, data) {
|
export async function exportToFile (fileDest, data) {
|
||||||
const stringifiedData = JSON.stringify(data, null, 2)
|
const stringifiedData = JSON.stringify(data, null, 2)
|
||||||
const filePath = `${fileDest}/export.json`
|
const filePath = `${fileDest}/export.json`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user