mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 19:25:18 -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
lib
migrations
20150702001020-update-to-0_3_1.js20160112220142-note-add-lastchange.js20160420180355-note-add-alias.js20160515114000-user-add-tokens.js20160607060246-support-revision.js20160703062241-support-authorship.js20161009040430-support-delete-note.js20161201050312-support-email-signin.js20180525153000-user-add-delete-token.js20200321153000-fix-account-deletion.js
realtime.jspublic/js
|
@ -23,7 +23,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message === 'column "shortid" of relation "Notes" already exists' ||
|
if (error.message === 'column "shortid" of relation "Notes" already exists' ||
|
||||||
error.message.toLowerCase().includes('duplicate column name')) {
|
error.message.toLowerCase().includes('duplicate column name')) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -10,7 +10,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message === 'column "lastchangeuserId" of relation "Notes" already exists' ||
|
if (error.message === 'column "lastchangeuserId" of relation "Notes" already exists' ||
|
||||||
error.message.toLowerCase().includes('duplicate column name')) {
|
error.message.toLowerCase().includes('duplicate column name')) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -10,7 +10,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "alias" of relation "Notes" already exists') {
|
error.message === 'column "alias" of relation "Notes" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -6,7 +6,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "accessToken" of relation "Users" already exists') {
|
error.message === 'column "accessToken" of relation "Users" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -18,7 +18,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "savedAt" of relation "Notes" already exists') {
|
error.message === 'column "savedAt" of relation "Notes" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -19,7 +19,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "authorship" of relation "Notes" already exists') {
|
error.message === 'column "authorship" of relation "Notes" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -4,7 +4,6 @@ module.exports = {
|
||||||
return queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE).catch(function (error) {
|
return queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "deletedAt" of relation "Notes" already exists') {
|
error.message === 'column "deletedAt" of relation "Notes" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -5,7 +5,6 @@ module.exports = {
|
||||||
return queryInterface.addColumn('Users', 'password', Sequelize.TEXT).catch(function (error) {
|
return queryInterface.addColumn('Users', 'password', Sequelize.TEXT).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "password" of relation "Users" already exists') {
|
error.message === 'column "password" of relation "Users" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
@ -14,7 +13,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "email" of relation "Users" already exists') {
|
error.message === 'column "email" of relation "Users" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -7,7 +7,6 @@ module.exports = {
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate column name') ||
|
if (error.message.toLowerCase().includes('duplicate column name') ||
|
||||||
error.message === 'column "deleteToken" of relation "Users" already exists') {
|
error.message === 'column "deleteToken" of relation "Users" already exists') {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -142,7 +142,6 @@ module.exports = {
|
||||||
})
|
})
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
if (error.message.toLowerCase().includes('duplicate key on write or update')) {
|
if (error.message.toLowerCase().includes('duplicate key on write or update')) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Migration has already run… ignoring.')
|
console.log('Migration has already run… ignoring.')
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
|
|
|
@ -242,7 +242,7 @@ function getStatus (callback) {
|
||||||
})
|
})
|
||||||
models.User.count().then(function (regcount) {
|
models.User.count().then(function (regcount) {
|
||||||
return callback
|
return callback
|
||||||
// eslint-disable-next-line n/no-callback-literal
|
|
||||||
? callback({
|
? callback({
|
||||||
onlineNotes: Object.keys(notes).length,
|
onlineNotes: Object.keys(notes).length,
|
||||||
onlineUsers: Object.keys(users).length,
|
onlineUsers: Object.keys(users).length,
|
||||||
|
|
|
@ -220,7 +220,7 @@ export function getStorageHistory (callback) {
|
||||||
if (typeof data === 'string') { data = JSON.parse(data) }
|
if (typeof data === 'string') { data = JSON.parse(data) }
|
||||||
callback(data)
|
callback(data)
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line n/no-callback-literal
|
|
||||||
callback([])
|
callback([])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1408,7 +1408,6 @@ ui.modal.revision.on('show.bs.modal', function (e) {
|
||||||
})
|
})
|
||||||
.fail(function (err) {
|
.fail(function (err) {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.debug(err)
|
console.debug(err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1530,7 +1529,6 @@ function selectRevision (time) {
|
||||||
})
|
})
|
||||||
.fail(function (err) {
|
.fail(function (err) {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.debug(err)
|
console.debug(err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1613,7 +1611,6 @@ ui.modal.snippetImportProjects.change(function () {
|
||||||
})
|
})
|
||||||
.fail(function (err) {
|
.fail(function (err) {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.debug(err)
|
console.debug(err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue