chore: fix most explicit-function-return-type warnings #656

Merged
Sainan merged 4 commits from explicit-return-types into main 2024-12-29 12:47:18 -08:00
Showing only changes of commit 981df33601 - Show all commits

View File

@ -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<ILoadoutDatabase> => {
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<ILoadoutDatabase> =
throw new Error("loadout not found");
}
return loadout.toJSON();
return loadout;
};