We have updated the cart to have store_id. But this store_id is always null even after passing the parameter to the create, update functions.
In cart create method
async create(data: CartCreateProps): Promise<Cart> { console.log(data.store_id); data.store_id = "store_mock_12456677788"; console.log(data); return await super.create(data); }
log 1 is undefined
log 2 is { region_id: 'reg_01HQVXQCZVFQSVX0SMAEEJH1VQ', sales_channel_id: undefined, context: { ip: '::ffff:127.0.0.1', user_agent: 'insomnia/8.6.1' }, store_id: 'store_mock_12456677788' }
and the result is a null store_id in response and in database.
In the update we pass a store_id in POST /store/carts/{id} and in update function we have
`async update(cartOrId: string | Cart, data: CartUpdateProps): Promise<Cart> {
console.log(cartOrId);
console.log(data);
return await super.update(cartOrId, data);
}`
In this,
log 1 is cart_01HR6Z45BSRKMYCXYJES8YM
log 2 is StorePostCartsCartReq { store_id: 'store_01HQVXQ6GNFA9Z8K2M55YV', }
and still in the update response the store_id is null.
We have updated the store_id manually in db and on fetch GET /store/carts/{id} it is working i.e store_id is returned