corrected indent and duplications
This commit is contained in:
+1597
-1559
File diff suppressed because it is too large
Load Diff
+828
-860
File diff suppressed because it is too large
Load Diff
+694
-713
File diff suppressed because it is too large
Load Diff
@@ -36,7 +36,7 @@ import { defaultCartFields, defaultCartRelations, defaultFields } from "."
|
||||
* description: "The code that a Discount is identifed by."
|
||||
* type: string
|
||||
* no_notification_order:
|
||||
* description: "An optional flag passed to the resulting order to determine use of notifications.""
|
||||
* description: "An optional flag passed to the resulting order to determine use of notifications."
|
||||
* type: boolean
|
||||
* customer_id:
|
||||
* description: "The id of the Customer to associate the Draft Order with."
|
||||
|
||||
@@ -56,7 +56,6 @@ export default async (req, res) => {
|
||||
const { value, error } = schema.validate(req.body)
|
||||
|
||||
if (error) {
|
||||
console.log(error)
|
||||
throw new MedusaError(MedusaError.Types.INVALID_DATA, error.details)
|
||||
}
|
||||
|
||||
|
||||
@@ -942,6 +942,4 @@ describe("SwapService", () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
|
||||
@@ -168,10 +168,6 @@ class NotificationService extends BaseService {
|
||||
return
|
||||
}
|
||||
|
||||
if(data['no_notification'] === true) {
|
||||
return
|
||||
}
|
||||
|
||||
return Promise.all(
|
||||
subs.map(async providerId => {
|
||||
return this.send(eventName, data, providerId).catch(err => {
|
||||
|
||||
@@ -309,11 +309,9 @@ class OrderService extends BaseService {
|
||||
*/
|
||||
async retrieve(orderId, config = {}) {
|
||||
|
||||
|
||||
const orderRepo = this.manager_.getCustomRepository(this.orderRepository_)
|
||||
const validatedId = this.validateId_(orderId)
|
||||
|
||||
|
||||
const { select, relations, totalsToSelect } = this.transformQueryForTotals_(
|
||||
config
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user