修复报告上报的异步调用,确保在发送报告前等待处理完成
This commit is contained in:
@@ -37,7 +37,7 @@ app.route({
|
||||
}))
|
||||
const repositories = _todayList.filter(item => item.topics.includes('gitea'));
|
||||
if (_todayList.length >= 1) {
|
||||
app.run({ path: 'cnb', key: 'report', payload: { repoList: _todayList } });
|
||||
await app.run({ path: 'cnb', key: 'report', payload: { repoList: _todayList } });
|
||||
}
|
||||
ctx.body = {
|
||||
list: repositories
|
||||
|
||||
Reference in New Issue
Block a user