0
Fork 0
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:
Darcy Ye 2023-08-02 11:09:07 +08:00 committed by GitHub
parent 0b519e5481
commit 18d805e61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 };
},