Skip to content

Commit f371b07

Browse files
committed
1 parent 3f837f0 commit f371b07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/functionsShellCommandAction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const actionFunction = async (options: any) => {
8181

8282
const initializeContext = (context: any) => {
8383
for (const trigger of emulator.triggers) {
84-
if (emulator.emulatedFunctions.includes(trigger.name)) {
84+
if (emulator.emulatedFunctions.includes(trigger.id)) {
8585
const localFunction = new LocalFunction(trigger, emulator.urls, emulator);
8686
const triggerNameDotNotation = trigger.name.replace(/-/g, ".");
8787
_.set(context, triggerNameDotNotation, localFunction.call);

src/localFunction.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ var utils = require("./utils");
1717
var LocalFunction = function (trigger, urls, controller) {
1818
const isCallable = _.get(trigger, ["labels", "deployment-callable"], "false");
1919

20+
this.id = trigger.id;
2021
this.name = trigger.name;
2122
this.eventTrigger = trigger.eventTrigger;
2223
this.httpsTrigger = trigger.httpsTrigger;
2324
this.controller = controller;
24-
this.url = _.get(urls, this.name);
25+
this.url = _.get(urls, this.id);
2526

2627
if (this.httpsTrigger) {
2728
if (isCallable == "true") {

0 commit comments

Comments
 (0)