corrected indent and duplications
This commit is contained in:
1 parent
7a071cc817
commit
c789e01fdd
8 files changed
+3120
-3142
No files matched your search
+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."
|
* description: "The code that a Discount is identifed by."
|
||||||
* type: string
|
* type: string
|
||||||
* no_notification_order:
|
* 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
|
* type: boolean
|
||||||
* customer_id:
|
* customer_id:
|
||||||
* description: "The id of the Customer to associate the Draft Order with."
|
* 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)
|
const { value, error } = schema.validate(req.body)
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
console.log(error)
|
|
||||||
throw new MedusaError(MedusaError.Types.INVALID_DATA, error.details)
|
throw new MedusaError(MedusaError.Types.INVALID_DATA, error.details)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -942,6 +942,4 @@ describe("SwapService", () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -168,10 +168,6 @@ class NotificationService extends BaseService {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data['no_notification'] === true) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
subs.map(async providerId => {
|
subs.map(async providerId => {
|
||||||
return this.send(eventName, data, providerId).catch(err => {
|
return this.send(eventName, data, providerId).catch(err => {
|
||||||
|
|||||||
@@ -309,11 +309,9 @@ class OrderService extends BaseService {
|
|||||||
*/
|
*/
|
||||||
async retrieve(orderId, config = {}) {
|
async retrieve(orderId, config = {}) {
|
||||||
|
|
||||||
|
|
||||||
const orderRepo = this.manager_.getCustomRepository(this.orderRepository_)
|
const orderRepo = this.manager_.getCustomRepository(this.orderRepository_)
|
||||||
const validatedId = this.validateId_(orderId)
|
const validatedId = this.validateId_(orderId)
|
||||||
|
|
||||||
|
|
||||||
const { select, relations, totalsToSelect } = this.transformQueryForTotals_(
|
const { select, relations, totalsToSelect } = this.transformQueryForTotals_(
|
||||||
config
|
config
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user