mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 20:38:32 +03:00
Replacing empty string with null
This commit is contained in:
@@ -4,7 +4,7 @@ import copy from '../copy/en'
|
||||
|
||||
export default ({ config, controller }) => {
|
||||
let api = Router()
|
||||
const fileDest = config.EXPORT_FILE_DEST || ""
|
||||
const fileDest = config.EXPORT_FILE_DEST || null
|
||||
|
||||
api.get('/', (req, res) => {
|
||||
res.json({
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user