Skip to content

Commit 0e39813

Browse files
committed
check any instead of query
1 parent 2f9a592 commit 0e39813

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/apps/script_executor_worker/src/workflows/fixMemberAffilations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const syncActivity = proxyActivities<typeof syncActivities>({
1515
})
1616

1717
export async function fixMemberAffilations(args: IFixMemberAffilationsArgs): Promise<void> {
18-
const limit = args.limit || 200
19-
const offset = args.offset || 0
18+
const limit = args.limit ?? 200
19+
const offset = args.offset ?? 0
2020

2121
console.log(
2222
`Fixing member affiliations for segment ${args.segmentId} with limit ${limit} and offset ${offset}`,

services/libs/data-access-layer/src/old/apps/script_executor_worker/member.repo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class MemberRepository {
174174
}
175175

176176
public async getSegmentMembers(segmentId: string, limit = 200, offset = 0): Promise<string[]> {
177-
const results = await this.questdbSQL.query(
177+
const results = await this.questdbSQL.any(
178178
`
179179
select distinct "memberId"
180180
from activities

0 commit comments

Comments
 (0)