fix(repos): 完善 commit log 订阅接口。
This commit is contained in:
@ -8,6 +8,7 @@ import { ProjectsModule } from '../projects/projects.module';
|
||||
import { BullModule } from '@nestjs/bull';
|
||||
import { LIST_LOGS_TASK, LIST_LOGS_PUB_SUB } from './repos.constants';
|
||||
import { PubSub } from 'graphql-subscriptions';
|
||||
import { ListLogsConsumer } from './list-logs.consumer';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@ -21,6 +22,7 @@ import { PubSub } from 'graphql-subscriptions';
|
||||
providers: [
|
||||
ReposResolver,
|
||||
ReposService,
|
||||
ListLogsConsumer,
|
||||
{
|
||||
provide: LIST_LOGS_PUB_SUB,
|
||||
useValue: new PubSub(),
|
||||
|
Reference in New Issue
Block a user