Skip to content

Commit 38a3070

Browse files
#RI-4907 - fix rs build (#2532)
* #RI-4907 - fix rs build
1 parent 429b263 commit 38a3070

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redisinsight/api/src/modules/settings/repositories/local.agreements.repository.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('LocalAgreementsRepository', () => {
6060
const result = await service.update(mockUserId, mockAgreements);
6161

6262
expect(result).toEqual(mockAgreements);
63-
expect(repository.update).toHaveBeenCalledWith({}, {
63+
expect(repository.update).toHaveBeenCalledWith("1", {
6464
...mockAgreementsEntity,
6565
});
6666
});

redisinsight/api/src/modules/settings/repositories/local.agreements.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class LocalAgreementsRepository extends AgreementsRepository {
2424
}
2525

2626
async update(id: string, agreements: Agreements): Promise<Agreements> {
27-
await this.repository.update({}, classToClass(AgreementsEntity, agreements));
27+
await this.repository.update(id || {}, classToClass(AgreementsEntity, agreements));
2828

2929
return this.getOrCreate();
3030
}

0 commit comments

Comments
 (0)