Update recordHelper to use undefined instead of null

This commit is contained in:
Logan Cusano
2023-06-18 23:40:51 -04:00
parent fd7435c7bc
commit b180f90973

View File

@@ -112,7 +112,7 @@ class nodeObject {
* @param {*} param0._online True/False if the node is online or offline
* @param {*} param0._nearbySystems An object array of nearby systems
*/
constructor({ _id = null, _name = null, _ip = null, _port = null, _location = null, _nearbySystems = null, _online = null }) {
constructor({ _id = undefined, _name = undefined, _ip = undefined, _port = undefined, _location = undefined, _nearbySystems = undefined, _online = undefined }) {
this.id = _id;
this.name = _name;
this.ip = _ip;
@@ -135,7 +135,7 @@ class clientObject {
* @param {*} param0._name The name of the bot associated with the IDs
* @param {*} param0._client_id The client ID of the bot needed to connect to Discord
*/
constructor({_discord_id = null, _name = null, _client_id = null,}) {
constructor({_discord_id = undefined, _name = undefined, _client_id = undefined,}) {
this.discordId = _discord_id;
this.name = _name;
this.clientId = _client_id;
@@ -154,7 +154,7 @@ class connectionObject {
* @param {*} param0._node The node associated with the connection
* @param {*} param0._client_object The client object associated with the connection
*/
constructor({_connection_id = null, _node = null, _client_object}) {
constructor({_connection_id = undefined, _node = undefined, _client_object}) {
this.connectionId = _connection_id;
this.node = _node;
this.clientObject = _client_object;