mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
fix(core): exclude standard connectors when compute social connector usage (#4271)
This commit is contained in:
parent
0b519e5481
commit
18d805e61f
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ export const createQuotaLibrary = (
|
|||
socialConnectorsLimit: async () => {
|
||||
const connectors = await getLogtoConnectors();
|
||||
const count = connectors.filter(
|
||||
({ type, metadata: { id } }) => type === ConnectorType.Social && id !== DemoConnector.Social
|
||||
({ type, metadata: { id, isStandard } }) =>
|
||||
type === ConnectorType.Social && !isStandard && id !== DemoConnector.Social
|
||||
).length;
|
||||
return { count };
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue