From 5dbd497f883247e42430660862cc85fd9ae04f5f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 17 Oct 2019 15:42:57 -0400 Subject: [PATCH] find Domain model to client.db --- src/Client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index 7cdf0ff..47929b3 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -6,6 +6,7 @@ import fs from 'fs-extra'; import path from 'path'; import config from './config.json'; import Account, { AccountInterface } from './models/Account'; +import Domain, { DomainInterface } from './models/Domain'; import Moderation, { ModerationInterface } from './models/Moderation'; import emojis from './stores/emojis'; import Util from './Util'; @@ -19,7 +20,7 @@ export default class Client extends Eris.Client { public aliases: Map; - public db: { Account: mongoose.Model; Moderation: mongoose.Model; }; + public db: { Account: mongoose.Model; Domain: mongoose.Model; Moderation: mongoose.Model; }; public stores: { emojis: { success: string, loading: string, error: string }; }; @@ -29,7 +30,7 @@ export default class Client extends Eris.Client { this.util = new Util(this); this.commands = new Map(); this.aliases = new Map(); - this.db = { Account, Moderation }; + this.db = { Account, Domain, Moderation }; this.stores = { emojis }; }