This commit is contained in:
Sainan 2025-01-03 02:34:24 +01:00
parent 9042d8b265
commit bf6c6a522a

View File

@ -17,7 +17,7 @@ export const getGuildForRequestEx = async (req: Request, inventory: IInventoryDa
} }
const guild = await Guild.findOne({ _id: guildId }); const guild = await Guild.findOne({ _id: guildId });
if (!guild) { if (!guild) {
throw new Error("Account thinks it is a in guild that doesn't exist"); throw new Error("Account thinks it is in a guild that doesn't exist");
} }
return guild; return guild;
}; };