misc: added support for type

This commit is contained in:
Sheen Capadngan
2025-03-07 23:15:05 +08:00
parent 9711e73a06
commit 57f54440d6

View File

@@ -134,7 +134,7 @@ export const integrationAuthServiceFactory = ({
})
);
return filteredAuthorizations.filter((auth) => auth !== null);
return filteredAuthorizations.filter((auth): auth is NonNullable<typeof auth> => auth !== null);
};
const getIntegrationAuth = async ({ actor, id, actorId, actorAuthMethod, actorOrgId }: TGetIntegrationAuthDTO) => {