mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05: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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue