fix(repos): 完善 commit log 订阅接口。
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user