This commit is contained in:
Daniel
2019-12-19 16:26:17 +01:00
parent 3716d4d5e3
commit b3abcbcaae
3 changed files with 3 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ admin.before ('CREATE', 'Orders', async (req) => {
if (!Items || Items.length === 0)
return req.reject ('Please order at least one item.')
if (!req.data.shippingAddress_ID) return req.reject (
'Please enter a valid shpping address.',
'Please enter a valid shipping address.',
'shippingAddress_ID'
)
// TODO: future way of doing that: