1
0
Fork 0

find Domain model to client.db

refactor/models
Matthew R 2019-10-17 15:42:57 -04:00
parent c2fa0ce2a7
commit 5dbd497f88
No known key found for this signature in database
GPG Key ID: 97CA005641E9054C
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import fs from 'fs-extra';
import path from 'path'; import path from 'path';
import config from './config.json'; import config from './config.json';
import Account, { AccountInterface } from './models/Account'; import Account, { AccountInterface } from './models/Account';
import Domain, { DomainInterface } from './models/Domain';
import Moderation, { ModerationInterface } from './models/Moderation'; import Moderation, { ModerationInterface } from './models/Moderation';
import emojis from './stores/emojis'; import emojis from './stores/emojis';
import Util from './Util'; import Util from './Util';
@ -19,7 +20,7 @@ export default class Client extends Eris.Client {
public aliases: Map<string, string>; public aliases: Map<string, string>;
public db: { Account: mongoose.Model<AccountInterface>; Moderation: mongoose.Model<ModerationInterface>; }; public db: { Account: mongoose.Model<AccountInterface>; Domain: mongoose.Model<DomainInterface>; Moderation: mongoose.Model<ModerationInterface>; };
public stores: { emojis: { success: string, loading: string, error: string }; }; 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.util = new Util(this);
this.commands = new Map(); this.commands = new Map();
this.aliases = new Map(); this.aliases = new Map();
this.db = { Account, Moderation }; this.db = { Account, Domain, Moderation };
this.stores = { emojis }; this.stores = { emojis };
} }