eslint
This commit is contained in:
@ -41,7 +41,7 @@ const expand = (sphinx) => {
|
||||
{
|
||||
if(values[val] === null)
|
||||
continue;
|
||||
|
||||
|
||||
names += '`' + val + '`,';
|
||||
valuesData += sphinx.escape(values[val]) + ',';
|
||||
}
|
||||
@ -61,7 +61,7 @@ const expand = (sphinx) => {
|
||||
{
|
||||
data = `(${parseValues(values)})`
|
||||
}
|
||||
|
||||
|
||||
let query = `INSERT INTO ${table}(${names}) VALUES ${data}`;
|
||||
queryCall(query, (...responce) => {
|
||||
if(callback)
|
||||
|
@ -256,7 +256,7 @@ module.exports = (callback, dataDirectory, onClose) => {
|
||||
const probablyCoruptedFiles = await findFiles(`${sphinx.directoryPath}/**/*.+(meta|ram)`)
|
||||
let brokenFiles = await Promise.all(probablyCoruptedFiles.map(file => checkNullFile(file)))
|
||||
brokenFiles = probablyCoruptedFiles.filter((file, index) => !brokenFiles[index])
|
||||
|
||||
|
||||
brokenFiles.forEach(file => {
|
||||
console.log('FIXDB: clean file because of broken', file)
|
||||
fs.unlinkSync(file)
|
||||
|
@ -269,7 +269,7 @@ app.get('*', function(req, res)
|
||||
return
|
||||
|
||||
loadBootstrapPeers('https://api.myjson.com/bins/1e5rmh')
|
||||
loadBootstrapPeers('https://jsonblob.com/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
|
||||
loadBootstrapPeers('https://jsonblob.com/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
|
||||
})
|
||||
}
|
||||
|
||||
@ -787,7 +787,7 @@ app.get('*', function(req, res)
|
||||
|
||||
// save feed
|
||||
await feed.save()
|
||||
|
||||
|
||||
// stop bootstrap interval
|
||||
if(config.p2pBootstrap && p2pBootstrapLoop)
|
||||
{
|
||||
|
Reference in New Issue
Block a user