diff --git a/src/services/loadoutService.ts b/src/services/loadoutService.ts index 8ca415f8..37f91612 100644 --- a/src/services/loadoutService.ts +++ b/src/services/loadoutService.ts @@ -1,8 +1,7 @@ import { Loadout } from "@/src/models/inventoryModels/loadoutModel"; import { logger } from "@/src/utils/logger"; -import { ILoadoutDatabase } from "../types/saveLoadoutTypes"; -export const getLoadout = async (accountId: string): Promise => { +export const getLoadout = async (accountId: string) => { const loadout = await Loadout.findOne({ loadoutOwnerId: accountId }); if (!loadout) { @@ -10,5 +9,5 @@ export const getLoadout = async (accountId: string): Promise = throw new Error("loadout not found"); } - return loadout.toJSON(); + return loadout; };