Skip to content

Commit

Permalink
Merge pull request #8 from justbetter/feature/reset-failure-count-if-…
Browse files Browse the repository at this point in the history
…success

Reset failure data if success
  • Loading branch information
VincentBean authored Jan 8, 2024
2 parents 393f1e0 + f8ee8a2 commit 8bc50bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Actions/UpdatePrices.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public function update(string $sku): void

$this->magentoCustomerPrices->update($model);

$model->update([
'fail_count' => 0,
'last_failed' => null,
]);

activity()
->performedOn($model)
->log('Updated price');
Expand Down

0 comments on commit 8bc50bc

Please sign in to comment.