Skip to content

Commit 622992b

Browse files
committed
set notify api async
1 parent 06de900 commit 622992b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app/controller/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ class ApiController extends AbstractController {
8989
msg: '系统错误,保存失败'
9090
})
9191
}
92-
await this.notifyApiChange(resources, lastModifiedTime)
9392
this.service.group.updateTime(groupId)
9493
// 存下历史记录,并将所有记录返回
9594
resources.history = await this.service.apiHistory.push(resources)
95+
this.notifyApiChange(resources, lastModifiedTime)
9696
this.ctx.body = { resources }
9797
}
9898
async notifyApiChange (api, lastModifiedTime) {

0 commit comments

Comments
 (0)