fix: remove dojo key after being kicked from clan
All checks were successful
Build / build (22) (push) Successful in 38s
Build / build (20) (push) Successful in 1m3s
Build / build (18) (push) Successful in 1m8s
Build Docker image / docker (push) Successful in 34s

This commit is contained in:
Sainan 2025-03-14 11:21:56 +01:00
parent 0c06776985
commit 236cccc137

View File

@ -17,9 +17,9 @@ export const removeFromGuildController: RequestHandler = async (req, res) => {
inventory.GuildId = undefined;
// Remove clan key or blueprint from kicked member
const itemIndex = inventory.MiscItems.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
const itemIndex = inventory.LevelKeys.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
if (itemIndex != -1) {
inventory.MiscItems.splice(itemIndex, 1);
inventory.LevelKeys.splice(itemIndex, 1);
} else {
const recipeIndex = inventory.Recipes.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKeyBlueprint");
if (recipeIndex != -1) {