Skip to content

Commit

Permalink
fix: get block in resultGroupBy (return array)
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Feb 5, 2024
1 parent 6c704a6 commit 60c7214
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
24 changes: 8 additions & 16 deletions src/common/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,14 @@ export const SERVICE = {
path: 'v1.Cw20ReindexingService.reindexing',
},
},
HoroscopeHandlerService: {
key: 'HoroscopeHandlerService',
path: 'v1.HoroscopeHandlerService',
getData: {
key: 'getData',
path: 'v1.HoroscopeHandlerService.getData',
},
},
CrawlIBCIcs20Service: {
key: 'CrawlIBCIcs20Service',
name: 'v1.CrawlIBCIcs20Service',
Expand All @@ -384,22 +392,6 @@ export const SERVICE = {
path: 'v1.ServicesManager.HealthCheck',
},
},
HoroscopeHandlerService: {
key: 'HoroscopeHandlerService',
path: 'v1.HoroscopeHandlerService',
getData: {
key: 'getData',
path: 'v1.HoroscopeHandlerService.getData',
},
},
HoroscopeHandlerService: {
key: 'HoroscopeHandlerService',
path: 'v1.HoroscopeHandlerService',
getData: {
key: 'getData',
path: 'v1.HoroscopeHandlerService.getData',
},
},
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/services/horoscope-handler/handler.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class HoroscopeHandlerService extends BaseService {
if (resultGroupBy[height][0] instanceof Block) {
const block: any = resultGroupBy[height].filter(
(e) => e instanceof Block
);
)[0];
const eventBlocks = resultGroupBy[height].filter(
(e) => e instanceof Event
);
Expand Down

0 comments on commit 60c7214

Please sign in to comment.