Rename database function from start to connect, fixes #375
This commit is contained in:
parent
821028ed7d
commit
8cdb65a966
2 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue