fix(repos): 完善 commit log 订阅接口。

This commit is contained in:
Ivan Li
2021-03-09 22:50:26 +08:00
parent 22d3dc299c
commit d02cea2115
5 changed files with 17 additions and 8 deletions

View File

@ -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(),