@beseif-solutions/prow-core 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -173,7 +173,7 @@ class Protocol {
|
|
|
173
173
|
if (!func || typeof func !== `function`) {
|
|
174
174
|
throw new Error(`Invalid function ${req.params.function}`);
|
|
175
175
|
}
|
|
176
|
-
const invokeInstance = (0, core_1.core)({
|
|
176
|
+
const invokeInstance = await (0, core_1.core)({
|
|
177
177
|
env: req.context.environment,
|
|
178
178
|
localization: req.context.localization,
|
|
179
179
|
sources: API_SOURCES(this.provider, this.configuration.sources, {
|
package/package.json
CHANGED
|
@@ -181,7 +181,7 @@ export class Protocol {
|
|
|
181
181
|
const func = _.get(elem, req.params.function);
|
|
182
182
|
if (!func || typeof func !== `function`) { throw new Error(`Invalid function ${req.params.function}`); }
|
|
183
183
|
|
|
184
|
-
const invokeInstance = core({
|
|
184
|
+
const invokeInstance = await core({
|
|
185
185
|
env: req.context.environment,
|
|
186
186
|
localization: req.context.localization,
|
|
187
187
|
sources: API_SOURCES(this.provider, this.configuration.sources, {
|