aboutsummaryrefslogtreecommitdiff
path: root/bot/src/utils/sync.js
blob: fa3d8c978dc0c7af8a72f5caf1aefb1ecfed4120 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { quote, pendingQuote } from '../models/quote.js';
import { guildSettings } from '../models/guild-settings.js';
import { commandUsages } from '../models/command-usages.js';

export function syncDB() {
    quote.sync().then(() => {
        console.log('[>] Quote database synced!');
    });

    pendingQuote.sync().then(() => {
        console.log('[>] Pending Quote database synced!');
    });

    guildSettings.sync().then(() => {
        console.log('[>] Guild database synced!');
    });

    commandUsages.sync().then(() => {
        console.log('[>] Command usage database synced!');
    });
}