Rename database function from start to connect, fixes #375

This commit is contained in:
Elis Odenhage 2022-06-21 22:19:37 +02:00
parent 821028ed7d
commit 8cdb65a966
2 changed files with 2 additions and 2 deletions

View file

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

View file

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