From 36d5339e15e1fe591f5d1f69e23cc5a495d6c5d9 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 15 May 2023 18:05:00 +0300 Subject: [PATCH] v1.3.20 --- package.json | 2 +- src/MessageBroker.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 70adc0c..2d7dbdc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@navy.gif/wrappers", - "version": "1.3.19", + "version": "1.3.20", "description": "Various wrapper classes I use in my projects", "repository": "https://git.corgi.wtf/Navy.gif/wrappers.git", "author": "Navy.gif", diff --git a/src/MessageBroker.ts b/src/MessageBroker.ts index f59fe9c..3d6d5ae 100644 --- a/src/MessageBroker.ts +++ b/src/MessageBroker.ts @@ -23,7 +23,7 @@ type QueueDef = { } export type BrokerOptions = { - load: boolean, + load?: boolean, host: string, port: number user: string, @@ -82,7 +82,7 @@ class MessageBroker { constructor (server: IServer, options: BrokerOptions) { - this.#load = options.load; + this.#load = options.load || false; this.#hosts = options.host.split(','); this.#username = options.user; this.#password = options.pass;