Skip to content

Commit

Permalink
#984: --clear option for importFile
Browse files Browse the repository at this point in the history
  • Loading branch information
phjulia committed Aug 20, 2023
1 parent ceefc04 commit 127e1e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ class Mcdev {
break;
}
}
case 'clearNotifications':
case 'updateNotifications': {
{
if (
Expand Down
5 changes: 4 additions & 1 deletion lib/metadataTypes/MetadataType.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@ class MetadataType {
if (!this.hasChanged(cachedVersion, metadataMap[metadataKey])) {
hasError = true;
}
if (Util.OPTIONS.completionEmail) {
if (Util.OPTIONS.clear) {
metadataMap[metadataKey].sendEmailNotification = false;
metadataMap[metadataKey].notificationEmailAddress = '';
} else if (Util.OPTIONS.completionEmail) {
metadataMap[metadataKey].sendEmailNotification = true;
metadataMap[metadataKey].notificationEmailAddress = Util.OPTIONS.completionEmail;
}
Expand Down

0 comments on commit 127e1e4

Please sign in to comment.