Skip to content

Commit 1a1346b

Browse files
committed
fix(cli): response scope block -> local
1 parent bdc3e78 commit 1a1346b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,6 @@ const pushSettings = async () => {
812812
}
813813

814814
const pushFunction = async ({ functionId, async, returnOnZero } = { returnOnZero: false }) => {
815-
let response = {};
816-
817815
const functionIds = [];
818816

819817
if (functionId) {
@@ -867,14 +865,15 @@ const pushFunction = async ({ functionId, async, returnOnZero } = { returnOnZero
867865
const failedDeployments = [];
868866

869867
await Promise.all(functions.map(async (func) => {
868+
let response = {};
869+
870870
const ignore = func.ignore ? 'appwrite.json' : '.gitignore';
871871
let functionExists = false;
872872
let deploymentCreated = false;
873873

874874
const updaterRow = new Spinner({ status: '', resource: func.name, id: func['$id'], end: `Ignoring using: ${ignore}` });
875875

876876
updaterRow.update({ status: 'Getting' }).startSpinner(SPINNER_DOTS);
877-
878877
try {
879878
response = await functionsGet({
880879
functionId: func['$id'],

0 commit comments

Comments
 (0)