Skip to content

Commit

Permalink
Merge pull request #45 from Nicolas-Gong/patch-2
Browse files Browse the repository at this point in the history
触发器的开启由serverless.yml内控制,不再统一开启
  • Loading branch information
lukesyy authored Feb 18, 2022
2 parents ba3cf73 + 1c24e52 commit 7dee801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tencentscf.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const sleep = ms => new Promise(res => setTimeout(res, ms));
Type: "timer",
TriggerDesc: vo.timer.parameters.cronExpression,
CustomArgument: vo.timer.parameters.argument,
Enable: "OPEN"
Enable: vo.timer.parameters.enable ? 'OPEN' : 'CLOSE'
};
await client.CreateTrigger(param).then(
data => {
Expand Down

0 comments on commit 7dee801

Please sign in to comment.