Skip to content

Commit

Permalink
better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHaff committed Mar 14, 2024
1 parent 674e8dd commit 69c3c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/event-producer/src/queue/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function setEvents(newEvents: Array<EPEvent>) {
*
* @returns {Promise<void>}
*/
export const initDB = (c?: {
export const initDB = (options?: {
feralEventTypes: Config['feralEventTypes'];
}): Promise<void> =>
new Promise<void>((resolve, reject) => {
Expand All @@ -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
Expand Down

0 comments on commit 69c3c44

Please sign in to comment.