Skip to content

Commit

Permalink
fix: remove arguments from function
Browse files Browse the repository at this point in the history
  • Loading branch information
nil-amrutlal committed Apr 11, 2024
1 parent 2ff01d3 commit 1cceab5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/apps/graph/src/graph/subscription/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ async function* iteratorFn(
): AsyncGenerator<Event[] | undefined, void, unknown> {
let lastEventId;

lastEventId = await getLatestEventId(
qualifiedEventName,
chainId,
parametersFilter,
minimumDepth,
);
lastEventId = await getLatestEventId();

if (!nullishOrEmpty(lastEventId)) {
yield [];
Expand Down Expand Up @@ -159,12 +154,7 @@ async function getLastEvents(
return eventsToReturn.sort((a, b) => b.id - a.id);
}

async function getLatestEventId(
eventName: string,
chainId?: string | null,
parametersFilter?: string | null,
minimumDepth?: number | null,
) {
async function getLatestEventId() {
try {
const lastEventId = await prismaClient.event.aggregate({
_max: {
Expand Down

0 comments on commit 1cceab5

Please sign in to comment.