mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 20:38:32 +03:00
Linting errors
This commit is contained in:
@@ -14,6 +14,6 @@ export default {
|
||||
},
|
||||
success: {
|
||||
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) {
|
||||
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 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 filePath = `${fileDest}/export.json`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user