mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-09 13:51:57 -04:00
chore(eslint): run eslint --fix
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
a11c05b477
commit
c437366c33
13 changed files with 2 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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([])
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue