Improved query formatting

refs https://github.com/TryGhost/Team/issues/599

- Oneliners with lots of chained commands are hardly readable on small screens
This commit is contained in:
Naz 2021-04-07 18:13:10 +12:00
parent e11c0f43cf
commit 0f049fbb94

View File

@ -23,7 +23,11 @@ module.exports = {
},
customIntegrations: {
currentCountQuery: async (db) => {
let result = await db.knex('integrations').count('id', {as: 'count'}).whereNotIn('type', ['internal', 'builtin']).first();
let result = await db.knex('integrations')
.count('id', {as: 'count'})
.whereNotIn('type', ['internal', 'builtin'])
.first();
return result.count;
}
},