This commit is contained in:
parent
6581f577be
commit
5811ab46ba
@ -28,7 +28,7 @@ module.exports = client => {
|
|||||||
})
|
})
|
||||||
for (const instance of result.hits.hits) {
|
for (const instance of result.hits.hits) {
|
||||||
if (last && instance._source && last.instance === instance._source.instance) {
|
if (last && instance._source && last.instance === instance._source.instance) {
|
||||||
await client.delete({ index: index, id: instance._id })
|
await client.delete({ index: constant.index, id: instance._id })
|
||||||
count.deleted++
|
count.deleted++
|
||||||
console.log('deleted ' + instance._id + ': ' + instance._source.instance)
|
console.log('deleted ' + instance._id + ': ' + instance._source.instance)
|
||||||
}
|
}
|
||||||
|
@ -109,8 +109,8 @@ const apexinstance = require('./lib/apex'),
|
|||||||
}
|
}
|
||||||
taskdeletedup(client)
|
taskdeletedup(client)
|
||||||
await apex.startDelivery()
|
await apex.startDelivery()
|
||||||
await fediblock(client, apex, app)
|
|
||||||
console.log('Server listening on ' + server.address().address + ':' + server.address().port)
|
console.log('Server listening on ' + server.address().address + ':' + server.address().port)
|
||||||
|
await fediblock(client, apex, app)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user