2023-06-14 02:26:19 +02:00
|
|
|
import { IInventoryDatabase, IInventoryResponse } from "@/src/types/inventoryTypes/inventoryTypes";
|
2023-06-04 03:06:22 +02:00
|
|
|
|
|
|
|
const toInventoryResponse = (inventoryDatabase: IInventoryDatabase): IInventoryResponse => {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
const { accountOwnerId, ...inventoreResponse } = inventoryDatabase;
|
|
|
|
return inventoreResponse;
|
|
|
|
};
|
|
|
|
|
|
|
|
export { toInventoryResponse };
|