Skip to content

Commit

Permalink
fix(app-server): fix trigger invoking bug, func_id type error
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Sep 13, 2021
1 parent d7c82b0 commit 1ff8b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-service/src/api/trigger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: Maslow<wangfugen@126.com>
* @Date: 2021-07-30 10:30:29
* @LastEditTime: 2021-09-09 23:36:39
* @LastEditTime: 2021-09-13 14:49:36
* @Description:
*/

Expand All @@ -28,7 +28,7 @@ export async function getTriggers(status = 1) {

const triggers = []
for (const func of docs) {
func.triggers.forEach((tri: any) => tri['func_id'] = func._id)
func.triggers.forEach((tri: any) => tri['func_id'] = func._id.toString())
triggers.push(...func.triggers)
}

Expand Down

0 comments on commit 1ff8b51

Please sign in to comment.