Skip to content

Commit b3d4de0

Browse files
committed
Revert changes
1 parent bec7d8b commit b3d4de0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

templates/cli/lib/commands/deploy.js.twig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,17 @@ const deployFunction = async ({ functionId, all, yes } = {}) => {
215215
parseOutput: false
216216
});
217217
}));
218-
}
218+
}
219+
220+
// Deploy local variables
221+
await Promise.all(Object.keys(func.variables).map(async localVariableKey => {
222+
await functionsCreateVariable({
223+
functionId: func['$id'],
224+
key: localVariableKey,
225+
value: func.variables[localVariableKey],
226+
parseOutput: false
227+
});
228+
}));
219229
}
220230

221231
response = await functionsUpdate({

0 commit comments

Comments
 (0)