1
0
Fork 0

build CI fixes

refactor/models
Matthew 2020-03-28 12:16:39 -04:00
parent c88d4cd9ad
commit eafcdf1cf6
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -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 {