Skip to content

Commit c2412e1

Browse files
authored
Merge pull request #15 from AppDrag/feature/skipped-api-functions-updates
Feature/skipped api functions updates
2 parents 907e78a + f98e0f6 commit c2412e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/api/api.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ const pushFunctions = async (appId, token, currFolder, basePath, folders) => {
206206
let response = await restoreCloudBackendFunction(appId, token, folder);
207207
if (response.status == "OK") {
208208
fs.unlinkSync(zipPath);
209-
console.log(chalk.green(`${folder} has been updated !`));
209+
if (response.skipped) {
210+
console.log(chalk.yellow(`${folder} has been skipped !`));
211+
} else {
212+
console.log(chalk.green(`${folder} has been updated !`));
213+
}
210214
} else {
211215
console.log(chalk.green(`Error updating ${folder}.`));
212216
}

0 commit comments

Comments
 (0)