fix(medusa): validate customer for group discount (#3797)

* fix: validate customer for group discount

* fix: remove logger

* fix: add generated desc

* fix: add an integration test case

* refactor: update error message

* fix: typo

* refactor: move condition

---------

Co-authored-by: fPolic <frane@medusajs.com>
This commit is contained in:
Frane Polić
2023-04-11 14:16:18 +02:00
committed by GitHub
parent 99cc4b0571
commit 78ff64e783
6 changed files with 87 additions and 4 deletions
@@ -168,7 +168,7 @@ class Discount {
* - code
* properties:
* code:
* description: "The code that a Discount is identifed by."
* description: "The code that a Discount is identified by."
* type: string
* customer_id:
* description: "The ID of the Customer to associate the Cart with."