Skip to content

Commit a924dd5

Browse files
committed
Tweak getOngoingEngagementIds to return a readonly array
1 parent 27eb957 commit a924dd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/engagement/engagement.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export class EngagementRepository extends CommonRepository {
502502
async getOngoingEngagementIds(
503503
projectId: ID,
504504
excludes: EngagementStatus[] = [],
505-
) {
505+
): Promise<readonly ID[]> {
506506
const rows = await this.db
507507
.query()
508508
.match([

src/components/engagement/handlers/update-engagement-status.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class UpdateEngagementStatusHandler
130130

131131
private async updateEngagements(
132132
status: EngagementStatus,
133-
engagementIds: ID[],
133+
engagementIds: readonly ID[],
134134
type: ProjectType,
135135
session: Session,
136136
) {

0 commit comments

Comments
 (0)