give an empty response for import request
This commit is contained in:
parent
eb1627a50f
commit
1bb00df760
@ -9,7 +9,8 @@ export const importController: RequestHandler = async (req, res) => {
|
|||||||
const inventory = await getInventory(accountId);
|
const inventory = await getInventory(accountId);
|
||||||
const request = JSON.parse(String(req.body)) as IImportRequest;
|
const request = JSON.parse(String(req.body)) as IImportRequest;
|
||||||
importInventory(inventory, request.inventory);
|
importInventory(inventory, request.inventory);
|
||||||
res.json(await inventory.save());
|
await inventory.save();
|
||||||
|
res.end();
|
||||||
};
|
};
|
||||||
|
|
||||||
interface IImportRequest {
|
interface IImportRequest {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user