XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: remove empty Completed arrays from ChallengeProgress (#4428)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4428 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

beb70dd7
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -0
Modified src/services/inventoryService.ts +6 -0
@@ -3168,6 +3168,12 @@ export const cleanupInventory = (inventory: TInventoryDatabaseDocument): void =>
3168 3168 if (inventory.WeeklyGuildVaultBonusInfo && !Array.isArray(inventory.WeeklyGuildVaultBonusInfo)) {
3169 3169 inventory.WeeklyGuildVaultBonusInfo = [inventory.WeeklyGuildVaultBonusInfo];
3170 3170 }
3171
3172 for (const challenge of inventory.ChallengeProgress) {
3173 if (challenge.Completed?.length === 0) {
3174 challenge.Completed = undefined;
3175 }
3176 }
3171 3177 };
3172 3178
3173 3179 export const migrateFusionTreasures = (