Fixed eslint errors (whitespaces)

Signed-off-by: Erik Michelson <erik@liltv.de>
This commit is contained in:
Erik Michelson 2020-03-21 23:27:00 +01:00
parent f42304c967
commit e0f729e014
No known key found for this signature in database
GPG key ID: 6C1E7B9159DABCBA

View file

@ -1,9 +1,9 @@
#!/usr/bin/env node
const logger = require("../lib/logger");
const logger = require('../lib/logger')
const models = require('../lib/models')
logger.info("Cleaning up notes that should already have been removed. Sorry.")
logger.info('Cleaning up notes that should already have been removed. Sorry.')
async function cleanup () {
await models.Note.findAll({
@ -20,7 +20,8 @@ async function cleanup() {
await models.Note.destroy({
where: {
id: item.id
}})
}
})
await models.Revision.destroy({
where: {
noteId: item.id
@ -49,7 +50,8 @@ async function cleanup() {
await models.Author.destroy({
where: {
id: item.id
}})
}
})
logger.info(`Deleted authorship ${item.id} from user ${item.userId}`)
}
}
@ -69,7 +71,8 @@ async function cleanup() {
await models.Author.destroy({
where: {
id: item.id
}})
}
})
logger.info(`Deleted authorship ${item.id} from note ${item.noteId}`)
}
}
@ -89,7 +92,8 @@ async function cleanup() {
await models.Revision.destroy({
where: {
id: item.id
}})
}
})
logger.info(`Deleted revision ${item.id} from note ${item.userId}`)
}
}