Skip to content

Commit beb7125

Browse files
committed
fix: fix import paths
1 parent a6217ce commit beb7125

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions/routes/ecom/modules/calculate-shipping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { logger } = require('firebase-functions')
2-
const EnviaAPI = require('./../../lib/envia-api')
2+
const EnviaAPI = require('../../../lib/envia-api')
33
const { getBestPackage } = require('../../../lib/util')
44

55
exports.post = async ({ appSdk }, req, res) => {
@@ -73,7 +73,7 @@ exports.post = async ({ appSdk }, req, res) => {
7373
})
7474
}
7575

76-
if (params.items?.length) {
76+
if (!params.items?.length) {
7777
return res.status(400).send({
7878
error: 'CALCULATE_EMPTY_CART',
7979
message: 'Cannot calculate shipping without cart items'

0 commit comments

Comments
 (0)