Skip to content

Commit 4bc2f9a

Browse files
committed
Run lint and format
1 parent 95ef0cb commit 4bc2f9a

File tree

5 files changed

+26
-16
lines changed

5 files changed

+26
-16
lines changed

backend/src/api/integration/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,4 @@ export default (app) => {
323323
safeWrap(require('./helpers/slackAuthenticateCallback').default),
324324
)
325325
}
326-
}
326+
}

backend/src/bin/jobs/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ const jobs: CrowdJob[] = [
1717
refreshGithubRepoSettings,
1818
]
1919

20-
export default jobs
20+
export default jobs

backend/src/database/repositories/memberRepository.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,19 @@ import {
6262
import { findTags } from '@crowd/data-access-layer/src/others'
6363
import { fetchAbsoluteMemberAggregates } from '@crowd/data-access-layer/src/members/segments'
6464
import { OrganizationField, queryOrgs } from '@crowd/data-access-layer/src/orgs'
65-
import { fetchManySegments, isSegmentProject, isSegmentProjectGroup } from '@crowd/data-access-layer/src/segments'
65+
import {
66+
fetchManySegments,
67+
isSegmentProject,
68+
isSegmentProjectGroup,
69+
} from '@crowd/data-access-layer/src/segments'
6670
import { IDbMemberData } from '@crowd/data-access-layer/src/members/types'
67-
import { countMembersWithActivities, getActiveMembers, getLastActivitiesForMembers, getMemberAggregates, setMemberDataToActivities } from '@crowd/data-access-layer'
71+
import {
72+
countMembersWithActivities,
73+
getActiveMembers,
74+
getLastActivitiesForMembers,
75+
getMemberAggregates,
76+
setMemberDataToActivities,
77+
} from '@crowd/data-access-layer'
6878
import { optionsQx } from '@crowd/data-access-layer/src/queryExecutor'
6979
import { KUBE_MODE, SERVICE } from '@/conf'
7080
import { ServiceType } from '@/conf/configTypes'

backend/src/services/memberService.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1161,17 +1161,17 @@ export default class MemberService extends LoggerBase {
11611161
)
11621162
member.memberOrganizations = unmergedRoles as IMemberRoleWithOrganization[]
11631163

1164-
// activity count
1165-
const secondaryActivityCount = await getActivityCountOfMemberIdentities(
1166-
this.options.qdb,
1167-
member.id,
1168-
secondaryBackup.identities,
1169-
)
1170-
const primaryActivityCount = await getActivityCountOfMemberIdentities(
1171-
this.options.qdb,
1172-
member.id,
1173-
member.identities,
1174-
)
1164+
// activity count
1165+
const secondaryActivityCount = await getActivityCountOfMemberIdentities(
1166+
this.options.qdb,
1167+
member.id,
1168+
secondaryBackup.identities,
1169+
)
1170+
const primaryActivityCount = await getActivityCountOfMemberIdentities(
1171+
this.options.qdb,
1172+
member.id,
1173+
member.identities,
1174+
)
11751175

11761176
return {
11771177
primary: {

services/apps/activities_worker/src/activities/createConversations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function createConversations(): Promise<Record<string, string>> {
4747
FROM activities child
4848
WHERE sourceParentId IS NOT NULL
4949
AND conversationId IS NULL
50-
AND createdAt >= dateadd('d', -10, now())
50+
AND createdAt >= dateadd('d', -1, now())
5151
)
5252
5353
SELECT

0 commit comments

Comments
 (0)