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

@ -10,7 +10,11 @@ export class ReposResolver {
@Inject(LIST_LOGS_PUB_SUB)
private readonly pubSub: PubSub,
) {}
@Subscription(() => LogList)
@Subscription(() => LogList, {
resolve: (value) => {
return value;
},
})
listLogsDone() {
return this.pubSub.asyncIterator(LIST_LOGS_DONE);
}