diff --git a/ghost/limit-service/lib/config.js b/ghost/limit-service/lib/config.js index 4c37d967f3..51171344af 100644 --- a/ghost/limit-service/lib/config.js +++ b/ghost/limit-service/lib/config.js @@ -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; } },