fix: use non-draft connectionCount in getConnectedApps
This commit is contained in:
@@ -16,8 +16,8 @@ const getConnectedApps = async (
|
|||||||
const connections = await context.currentUser
|
const connections = await context.currentUser
|
||||||
.$relatedQuery('connections')
|
.$relatedQuery('connections')
|
||||||
.select('connections.key')
|
.select('connections.key')
|
||||||
|
.where({ draft: false })
|
||||||
.count('connections.id as count')
|
.count('connections.id as count')
|
||||||
.where({ verified: true })
|
|
||||||
.groupBy('connections.key');
|
.groupBy('connections.key');
|
||||||
|
|
||||||
const connectionKeys = connections.map((connection) => connection.key);
|
const connectionKeys = connections.map((connection) => connection.key);
|
||||||
|
Reference in New Issue
Block a user