Commit 1e846a2b authored by nanahira's avatar nanahira

remove unused injection

parent df104197
...@@ -9,11 +9,10 @@ import { ...@@ -9,11 +9,10 @@ import {
BasePlugin, BasePlugin,
Caller, Caller,
Provide, Provide,
Inject,
LifecycleEvents, LifecycleEvents,
} from 'koishi-thirdeye'; } from 'koishi-thirdeye';
import { Connection, ConnectionOptions, createConnection } from 'typeorm'; import { Connection, ConnectionOptions } from 'typeorm';
import { Context, Database } from 'koishi'; import { Context } from 'koishi';
export * from './config'; export * from './config';
interface ConnectionEntry { interface ConnectionEntry {
...@@ -42,9 +41,6 @@ export default class TypeORMPlugin ...@@ -42,9 +41,6 @@ export default class TypeORMPlugin
@Caller() @Caller()
private caller: Context; private caller: Context;
@Inject()
private database: Database;
async close(token: string) { async close(token: string) {
const entry = this.registryMap.get(token)!; const entry = this.registryMap.get(token)!;
if (!entry) return; if (!entry) return;
......
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