taskdeletedup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-10-14 21:29:58 +02:00
parent 6581f577be
commit 5811ab46ba
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module.exports = client => {
})
for (const instance of result.hits.hits) {
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++
console.log('deleted ' + instance._id + ': ' + instance._source.instance)
}

View File

@ -109,8 +109,8 @@ const apexinstance = require('./lib/apex'),
}
taskdeletedup(client)
await apex.startDelivery()
await fediblock(client, apex, app)
console.log('Server listening on ' + server.address().address + ':' + server.address().port)
await fediblock(client, apex, app)
} catch (e) {
console.error(e)
}