fix: use non-draft connectionCount in getConnectedApps

This commit is contained in:
Ali BARIN
2022-08-02 20:31:21 +02:00
parent 6ca1b99947
commit 744c927b69

View File

@@ -16,8 +16,8 @@ const getConnectedApps = async (
const connections = await context.currentUser
.$relatedQuery('connections')
.select('connections.key')
.where({ draft: false })
.count('connections.id as count')
.where({ verified: true })
.groupBy('connections.key');
const connectionKeys = connections.map((connection) => connection.key);