Commit c6fff467 authored by nanahira's avatar nanahira

fix

parent b5ee6c96
Pipeline #6047 passed with stages
in 40 seconds
{
"name": "koishi-nestjs",
"version": "1.0.0",
"version": "1.0.1",
"description": "Koishi.js as Nest.js Module",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
......
......@@ -17,13 +17,6 @@ import {
KOISHI_CONTEXT_PRIVATE,
KOISHI_MODULE_OPTIONS,
} from './koishi.constants';
import { Context } from 'koishi';
const koishiContextProvider: Provider = {
provide: Context,
useFactory: (koishiApp: KoishiService) => koishiApp.any(),
};
const koishiContextProviderAny: Provider = {
provide: KOISHI_CONTEXT,
useFactory: (koishiApp: KoishiService) => koishiApp.any(),
......@@ -42,14 +35,12 @@ const koishiContextProviderPrivate: Provider = {
@Module({
providers: [
KoishiService,
koishiContextProvider,
koishiContextProviderAny,
koishiContextProviderChannel,
koishiContextProviderPrivate,
],
exports: [
KoishiService,
koishiContextProvider,
koishiContextProviderAny,
koishiContextProviderChannel,
koishiContextProviderPrivate,
......
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