Skip to content

Commit

Permalink
Fixes according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultJRD committed Feb 9, 2024
1 parent 39689bd commit 60134ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/async/consumers/block.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import { BlockEntity, TransactionEntity } from '@app/database';
import { BlockService, ChainService, TransactionService, ValidatorService } from '@app/services';
import { AssetSymbol, getAddressesRelatedToTransaction, isBeam, NotificationChannels, NotificationEvents, QueueJobs, QueuePriority, Queues } from '@app/utils';

(BigInt.prototype as any).toJSON = function () {
return this.toString();
};

@Processor(Queues.BLOCKS)
export class BlockConsumer {
private readonly _logger: Logger = new Logger(BlockConsumer.name);
Expand Down
4 changes: 4 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export * from './transactions';
export * from './validation';
export * from './validators';

(BigInt.prototype as any).toJSON = function () {
return this.toString();
};

export const sleep = async (ms: number): Promise<void> => {
return new Promise((resolve) => setTimeout(resolve, ms));
};

0 comments on commit 60134ba

Please sign in to comment.