Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Fix to not created cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
KeonHee committed Apr 9, 2021
1 parent ab66f1e commit 8108079
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deploy/lib/deployTriggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ module.exports = {
},

getTriggers(triggers) {
const feedMask = { feed: undefined };
return Object.keys(triggers)
.map(t => {
const trigger = triggers[t];
Expand All @@ -49,7 +48,7 @@ module.exports = {
},
});
}
return Object.assign(trigger, feedMask);
return trigger
});
},
};
11 changes: 9 additions & 2 deletions deploy/tests/deployTriggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,19 @@ describe('deployTriggers', () => {
{
triggerName: 'myTrigger',
namespace: 'myNamespace',
feed: undefined
},
{
triggerName: 'feedTrigger',
namespace: 'feedNamespace',
feed: {
feedName: "alarms/alarm",
namespace: "whisk.system",
params: {
"cron": "* * * * *",
"trigger_payload": {}
},
trigger: "/feedNamespace/feedTrigger"
},
trigger: {
annotations: [
{
Expand All @@ -67,7 +75,6 @@ describe('deployTriggers', () => {
}
],
},
feed: undefined
},
],
};
Expand Down

0 comments on commit 8108079

Please sign in to comment.