corrected indent and duplications

This commit is contained in:
--list
2021-06-24 16:31:12 +02:00
parent 7a071cc817
commit c789e01fdd
8 changed files with 3120 additions and 3142 deletions
+1597 -1559
View File
File diff suppressed because it is too large Load Diff
+828 -860
View File
File diff suppressed because it is too large Load Diff
+694 -713
View File
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 => {
-2
View File
@@ -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
)