Merge pull request #376 from Mastergamer433/375
Rename database function from start to connect, fixes #375
This commit is contained in:
commit
96620961eb
2 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue