Skip to content

Commit

Permalink
Merge pull request #353 from internetztube/develop
Browse files Browse the repository at this point in the history
Fix table name of discountuses
  • Loading branch information
lukeholder authored May 25, 2018
2 parents 7d34c7e + 9843ebf commit 2472c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Discounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public function orderCompleteHandler($order)
$customerDiscountUseRecord->save();
} else {
Craft::$app->getDb()->createCommand()
->update('{{%commerce_email_discountuse}}', [
->update('{{%commerce_email_discountuses}}', [
'uses' => new Expression('[[uses]] + 1')
], [
'email' => $order->getEmail(),
Expand Down

0 comments on commit 2472c0a

Please sign in to comment.