From 69c3c4413f3151d4c8f22ca2969291d885dcef6a Mon Sep 17 00:00:00 2001 From: Haff Date: Wed, 13 Mar 2024 22:53:31 -0400 Subject: [PATCH] better variable name --- packages/event-producer/src/queue/queue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/event-producer/src/queue/queue.ts b/packages/event-producer/src/queue/queue.ts index cf7d23de..08b02157 100644 --- a/packages/event-producer/src/queue/queue.ts +++ b/packages/event-producer/src/queue/queue.ts @@ -55,7 +55,7 @@ export function setEvents(newEvents: Array) { * * @returns {Promise} */ -export const initDB = (c?: { +export const initDB = (options?: { feralEventTypes: Config['feralEventTypes']; }): Promise => new Promise((resolve, reject) => { @@ -64,7 +64,7 @@ export const initDB = (c?: { switch (data.action) { case 'initSuccess': { if (data.events) { - const feralEvents = c?.feralEventTypes ?? []; + const feralEvents = options?.feralEventTypes ?? []; // remove events in the wild that might be jamming the queue const events = feralEvents.length > 0