From eafcdf1cf66efcd9c67717f8615c408ca2913b61 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 28 Mar 2020 12:16:39 -0400 Subject: [PATCH] build CI fixes --- src/commands/cwg_data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cwg_data.ts b/src/commands/cwg_data.ts index 354fc07..79e5b6c 100644 --- a/src/commands/cwg_data.ts +++ b/src/commands/cwg_data.ts @@ -19,7 +19,7 @@ export default class CWG_Data extends Command { public async run(message: Message, args: string[]) { try { if (!args[0]) return this.client.commands.get('help').run(message, ['cwg', this.name]); - const dom = await this.client.db.Domain.find({ $or: [{ domain: args[0] }, { port: Number(args[0]) || '' }] }); + const dom = await this.client.db.Domain.find({ $or: [{ domain: args[0] }, { port: Number(args[0]) || 0 }] }); if (!dom.length) { if (!Number.isNaN(Number(args[0]))) { try {