Skip to content

Commit

Permalink
🔀 Merge pull request #501
Browse files Browse the repository at this point in the history
🔨 add missing `resetgroup` in `!update all=true`
  • Loading branch information
idinium96 committed Mar 25, 2021
2 parents 3bab0da + 4939147 commit 76fc605
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/classes/Commands/sub-classes/PricelistManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@ export default class PricelistManagerCommands {
entry.note.sell = null;
}

if (params.resetgroup === true) {
entry.group = 'all';
}

if (typeof params.autoprice === 'boolean') {
if (params.autoprice === false) {
entry.time = null;
Expand Down Expand Up @@ -696,6 +700,10 @@ export default class PricelistManagerCommands {
delete params.removenote;
}

if (params.resetgroup) {
delete params.resetgroup;
}

if (params.withgroup) {
newPricelist = unTargetedPricelist.concat(newPricelist);
delete params.withgroup;
Expand Down

0 comments on commit 76fc605

Please sign in to comment.