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 {