forked from OpenWF/SpaceNinjaServer
Endpoint for custom API: https://localhost:443/custom/addItem example request: { "type": "Weapon", "internalName": "/Lotus/Weapons/Grineer/Pistols/GrineerMicrowavegun/GrnMicrowavePistol", "accountId": "6488fd2e7bec200069ca4242" }
10 lines
398 B
TypeScript
10 lines
398 B
TypeScript
import { IInventoryDatabase, IInventoryResponse } from "@/src/types/inventoryTypes/inventoryTypes";
|
|
|
|
const toInventoryResponse = (inventoryDatabase: IInventoryDatabase): IInventoryResponse => {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
const { accountOwnerId, ...inventoreResponse } = inventoryDatabase;
|
|
return inventoreResponse;
|
|
};
|
|
|
|
export { toInventoryResponse };
|