Skip to content

Commit

Permalink
fix: 修复触发器 last_exec_time 字段为空时的问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jun 8, 2021
1 parent 89359b5 commit f3b5ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/faas/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Trigger {
tri.id = data._id
tri.func_id = data.func_id
tri.name = data.name
tri.last_exec_time = data.last_exec_time
tri.last_exec_time = data.last_exec_time ?? 0

if (tri.isEvent) {
tri.event = data.event
Expand Down

0 comments on commit f3b5ada

Please sign in to comment.