forked from OpenWF/SpaceNinjaServer
10 lines
383 B
TypeScript
10 lines
383 B
TypeScript
import { IInventoryDatabase, IInventoryResponse } from "@/src/types/inventoryTypes";
|
|
|
|
const toInventoryResponse = (inventoryDatabase: IInventoryDatabase): IInventoryResponse => {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
const { accountOwnerId, ...inventoreResponse } = inventoryDatabase;
|
|
return inventoreResponse;
|
|
};
|
|
|
|
export { toInventoryResponse };
|