Skip to content

Commit

Permalink
fix(events): use arns name space for events
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jul 12, 2024
1 parent 5b919ac commit 1d67dfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/processes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const fetchAllArNSRecords = async ({
stack: e?.stack,
});

emitter?.emit('arnsError', `Error getting ArNS records: ${e}`);
emitter?.emit('arns:error', `Error getting ArNS records: ${e}`);

return undefined;
});
Expand All @@ -238,7 +238,7 @@ export const fetchAllArNSRecords = async ({
cursor: pageResult.nextCursor,
});

emitter?.emit('arnsPage', {
emitter?.emit('arns:pageLoaded', {
totalRecordCount: pageResult.totalItems,
fetchedRecordCount: Object.keys(records).length,
records: pageResult.items,
Expand All @@ -248,7 +248,7 @@ export const fetchAllArNSRecords = async ({
cursor = pageResult.nextCursor;
} while (cursor !== undefined);

emitter?.emit('arnsEnd', records);
emitter?.emit('arns:end', records);

logger.debug('Fetched all ArNS records', {
totalRecordCount: Object.keys(records).length,
Expand Down

0 comments on commit 1d67dfe

Please sign in to comment.