Commit 1e846a2b authored by nanahira's avatar nanahira

remove unused injection

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