Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function getEnrichmentData(
input: IEnrichmentSourceInput,
): Promise<IMemberEnrichmentData | null> {
const service = EnrichmentSourceServiceFactory.getEnrichmentSourceService(source, svc.log)
if (service.isEnrichableBySource(input) && (await hasRemainingCredits(source))) {
if ((await service.isEnrichableBySource(input)) && (await hasRemainingCredits(source))) {
return service.getData(input)
}
return null
Expand Down
2 changes: 1 addition & 1 deletion services/libs/data-access-layer/src/activities/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ export async function findMemberIdentityWithTheMostActivityInPlatform(
WHERE a."memberId" = $(memberId)
AND a.platform = $(platform)
GROUP BY a.platform, a.username
ORDER BY activity_count DESC
ORDER BY "activityCount" DESC
LIMIT 1;
`

Expand Down