Skip to content

Commit

Permalink
fix: worker service (#279)
Browse files Browse the repository at this point in the history
* fix/worker-service: check if dbData exists

* fix/worker-service: check if dbData exists
  • Loading branch information
BEdev24 authored Aug 19, 2024
1 parent af1cc54 commit 3f4a667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker-service/src/governance/services/vote.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class VoteService extends CommonService {
addresses,
);
const results: VoteRequest[] = [];
if (dbData.length > 0) {
if (dbData) {
dbData.forEach((vote) => {
results.push(VoteMapper.dbSyncToVoteRequest(vote, mapHotAddresses));
});
Expand Down

0 comments on commit 3f4a667

Please sign in to comment.