@@ -1144,13 +1144,12 @@ const pushFunction = async ({ functionId, async, code, withVariables } = { retur
1144
1144
parseOutput: false
1145
1145
});
1146
1146
1147
-
1147
+ let domain = '';
1148
1148
try {
1149
- let variables = await consoleVariables({ parseOutput: false, sdk: await sdkForConsole() });
1150
- domain = variables['_APP_DOMAIN_FUNCTIONS'];
1151
- domain = ID.unique() + '.' + domain;
1149
+ const variables = await consoleVariables({ parseOutput: false, sdk: await sdkForConsole() });
1150
+ domain = ID.unique() + '.' + variables['_APP_DOMAIN_FUNCTIONS'];
1152
1151
} catch (error) {
1153
- console.error('Error fetching console variables:', error );
1152
+ console.error('Error fetching console variables.' );
1154
1153
throw error;
1155
1154
}
1156
1155
@@ -1162,7 +1161,7 @@ const pushFunction = async ({ functionId, async, code, withVariables } = { retur
1162
1161
}
1163
1162
);
1164
1163
} catch (error) {
1165
- console.error('Error creating function rule:', error );
1164
+ console.error('Error creating function rule.' );
1166
1165
throw error;
1167
1166
}
1168
1167
@@ -1265,7 +1264,8 @@ const pushFunction = async ({ functionId, async, code, withVariables } = { retur
1265
1264
queries: [
1266
1265
JSON.stringify({ method: 'limit', values: [1] }),
1267
1266
JSON.stringify({ method: 'equal', "attribute": "deploymentResourceType", "values": ["function"] }),
1268
- JSON.stringify({ method: 'equal', "attribute": "deploymentResourceId", "values": [func['$id']] })
1267
+ JSON.stringify({ method: 'equal', "attribute": "deploymentResourceId", "values": [func['$id']] }),
1268
+ JSON.stringify({ method: 'equal', "attribute": "trigger", "values": ["manual"] }),
1269
1269
],
1270
1270
});
1271
1271
0 commit comments