chore(eslint): run eslint --fix

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2025-02-01 21:43:06 +01:00 committed by Erik Michelson
parent a11c05b477
commit c437366c33
13 changed files with 2 additions and 16 deletions

View file

@ -23,7 +23,6 @@ module.exports = {
}).catch(function (error) {
if (error.message === 'column "shortid" of relation "Notes" already exists' ||
error.message.toLowerCase().includes('duplicate column name')) {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -10,7 +10,6 @@ module.exports = {
}).catch(function (error) {
if (error.message === 'column "lastchangeuserId" of relation "Notes" already exists' ||
error.message.toLowerCase().includes('duplicate column name')) {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -10,7 +10,6 @@ module.exports = {
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "alias" of relation "Notes" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -6,7 +6,6 @@ module.exports = {
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "accessToken" of relation "Users" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -18,7 +18,6 @@ module.exports = {
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "savedAt" of relation "Notes" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -19,7 +19,6 @@ module.exports = {
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "authorship" of relation "Notes" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -4,7 +4,6 @@ module.exports = {
return queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "deletedAt" of relation "Notes" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -5,7 +5,6 @@ module.exports = {
return queryInterface.addColumn('Users', 'password', Sequelize.TEXT).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "password" of relation "Users" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error
@ -14,7 +13,6 @@ module.exports = {
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "email" of relation "Users" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -7,7 +7,6 @@ module.exports = {
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate column name') ||
error.message === 'column "deleteToken" of relation "Users" already exists') {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -142,7 +142,6 @@ module.exports = {
})
}).catch(function (error) {
if (error.message.toLowerCase().includes('duplicate key on write or update')) {
// eslint-disable-next-line no-console
console.log('Migration has already run… ignoring.')
} else {
throw error

View file

@ -242,7 +242,7 @@ function getStatus (callback) {
})
models.User.count().then(function (regcount) {
return callback
// eslint-disable-next-line n/no-callback-literal
? callback({
onlineNotes: Object.keys(notes).length,
onlineUsers: Object.keys(users).length,

View file

@ -220,7 +220,7 @@ export function getStorageHistory (callback) {
if (typeof data === 'string') { data = JSON.parse(data) }
callback(data)
}
// eslint-disable-next-line n/no-callback-literal
callback([])
}

View file

@ -1408,7 +1408,6 @@ ui.modal.revision.on('show.bs.modal', function (e) {
})
.fail(function (err) {
if (debug) {
// eslint-disable-next-line no-console
console.debug(err)
}
})
@ -1530,7 +1529,6 @@ function selectRevision (time) {
})
.fail(function (err) {
if (debug) {
// eslint-disable-next-line no-console
console.debug(err)
}
})
@ -1613,7 +1611,6 @@ ui.modal.snippetImportProjects.change(function () {
})
.fail(function (err) {
if (debug) {
// eslint-disable-next-line no-console
console.debug(err)
}
})