Commit 1e825f39 authored by nanahira's avatar nanahira

fix load db

parent 40ca6fc2
......@@ -57,7 +57,6 @@ export class MyPlugin {
async apply(ctx: Context, config: YGOCardConfig) {
this.ctx = ctx;
this.config = config;
await this.loadDBs();
ctx.on('connect', () => this.loadDBs());
ctx.on('disconnect', () => {
this.dbs.forEach((db) => db.close());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment