Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjnelson committed Jun 10, 2024
1 parent b138a93 commit f1cd194
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions src/components/engagement/engagement.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,7 @@ export class EngagementRepository extends CommonRepository {
getActualLanguageChanges = getChanges(LanguageEngagement);

async updateLanguage(
changes: UpdateLanguageEngagement & {
id: ID;
firstScripture?: boolean;
},
changes: UpdateLanguageEngagement,
session: Session,
changeset?: ID,
) {
Expand Down
2 changes: 0 additions & 2 deletions src/components/engagement/engagement.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ObjectView,
Session,
UnsecuredDto,
unwrapSecured,
viewOfChangeset,
} from '~/common';
import {
Expand Down Expand Up @@ -174,7 +173,6 @@ export class EngagementService {
const updated = await this.repo.updateLanguage(
{
id: object.id,
firstScripture: unwrapSecured(object.firstScripture) ?? false,
...changes,
},
session,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export class SetInitialEndDate implements IEventHandler<SubscribedEvent> {
await this.engagementRepo.updateLanguage(
{
id: engagement.id,
firstScripture: engagement.firstScripture,
...updateInput,
},
session,
Expand Down

0 comments on commit f1cd194

Please sign in to comment.