mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 05:18:31 +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 }) => {
|
export default ({ config, controller }) => {
|
||||||
let api = Router()
|
let api = Router()
|
||||||
const fileDest = config.EXPORT_FILE_DEST || ""
|
const fileDest = config.EXPORT_FILE_DEST || null
|
||||||
|
|
||||||
api.get('/', (req, res) => {
|
api.get('/', (req, res) => {
|
||||||
res.json({
|
res.json({
|
||||||
|
|||||||
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user