Merge pull request #376 from Mastergamer433/375

Rename database function from start to connect, fixes #375
This commit is contained in:
Axel Olausson Holtenäs 2022-07-05 01:01:45 +02:00 committed by GitHub
commit 96620961eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import logger from "../../logger";
// Configuration // Configuration
import { url } from "../../config/database"; import { url } from "../../config/database";
export const start = async () => { export const connect = async () => {
await mongoose await mongoose
.connect(url) .connect(url)
.then(async (connection) => { .then(async (connection) => {

View file

@ -6,7 +6,7 @@ import * as event from "./event";
import * as command from "./command"; import * as command from "./command";
export const start = async (client: Client) => { export const start = async (client: Client) => {
await database.start(); await database.connect();
await schedule.start(client); await schedule.start(client);
await command.register(client); await command.register(client);
await event.register(client); await event.register(client);