Skip to content

Commit 92da2f2

Browse files
committed
do not send empty external_account_id
1 parent 5772822 commit 92da2f2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/create-seller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const createSeller = async (
2626
last_name,
2727
email,
2828
company_name,
29-
external_account_id,
3029
origin_country_code,
30+
...(external_account_id ? {external_account_id} : {})
3131
});
3232

3333
console.log("Created ShipEngine Seller Account: ", response.data);

src/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ app.post(sellerEndpoint, bodyParser.json(), async (req, res) => {
5050

5151
res.status(200).json(seller);
5252
} catch (error) {
53+
console.error(error);
5354
res.status(500).json({ error });
5455
}
5556
});

0 commit comments

Comments
 (0)