mirror of
https://github.com/logto-io/logto.git
synced 2025-01-13 21:30:30 -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 () => {
|
socialConnectorsLimit: async () => {
|
||||||
const connectors = await getLogtoConnectors();
|
const connectors = await getLogtoConnectors();
|
||||||
const count = connectors.filter(
|
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;
|
).length;
|
||||||
return { count };
|
return { count };
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue