mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
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:
parent
e11c0f43cf
commit
0f049fbb94
@ -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;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user