Skip to content

Commit

Permalink
fix: use assign instead of merge because of overriding with `unde…
Browse files Browse the repository at this point in the history
…fined`
  • Loading branch information
vgorkavenko committed Nov 19, 2024
1 parent 3b1b9ef commit 5783166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duty/summary/summary.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { merge } from 'lodash';
import { assignIn, merge } from 'lodash';

import { ValStatus } from 'common/consensus-provider';
import { Epoch } from 'common/consensus-provider/types';
Expand Down Expand Up @@ -98,7 +98,7 @@ export class SummaryService {
},
set: (val: ValidatorDutySummary) => {
const curr = epochStorageData.summary.get(val.val_id) ?? {};
epochStorageData.summary.set(val.val_id, merge(curr, val));
epochStorageData.summary.set(val.val_id, assignIn(curr, val));
},
get: (val_id: ValidatorId): ValidatorDutySummary => {
return epochStorageData.summary.get(val_id);
Expand Down

0 comments on commit 5783166

Please sign in to comment.