Skip to content

fix: 修复创建函数触发器namespace传参错误 #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/triggers/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export class TriggerManager {
* @param triggers 触发器列表
* @returns 触发器部署 outputs
*/
async bulkCreateTriggers(triggers: NewTriggerInputs[] = []) {
async bulkCreateTriggers(triggers: NewTriggerInputs[] = [], namespace = 'default') {
const scfList = await this.getScfsByTriggers(triggers);

let apigwList: SimpleApigwDetail[] = [];
Expand All @@ -518,7 +518,7 @@ export class TriggerManager {
const task = async () => {
const { outputs, apigwServiceList } = await this.createTrigger({
name: curScf.name,
namespace: curScf.namespace,
namespace: namespace,
events: triggersConfig,
});
apigwList = apigwList.concat(apigwServiceList);
Expand Down