chore: use inventory projection in updateInventoryForConfirmedGuildJoin

This commit is contained in:
Sainan 2025-03-29 18:01:15 +01:00
parent 8cdcb209ae
commit 69f544c8d1

View File

@ -293,7 +293,7 @@ export const updateInventoryForConfirmedGuildJoin = async (
accountId: string,
guildId: Types.ObjectId
): Promise<void> => {
const inventory = await getInventory(accountId);
const inventory = await getInventory(accountId, "GuildId Recipes");
// Set GuildId
inventory.GuildId = guildId;