返回提交历史
Modified
src/services/inventoryService.ts
+6
-0
XFEstudio/XFESpaceNinjaServer
chore: remove Tag="" from Missions (#4438)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4438 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
8d791e20
代码差异
1 个文件
+6
-0
@@ -3052,6 +3052,12 @@ export const cleanupInventory = (inventory: TInventoryDatabaseDocument): void =>
3052
3052
setupKahlSyndicate(inventory);
3053
3053
}
3054
3054
3055
index = inventory.Missions.findIndex(x => x.Tag == "");
3056
if (index != -1) {
3057
inventory.Missions.splice(index, 1);
3058
logger.debug(`removed mission completion of ""`);
3059
}
3060
3055
3061
const set = new Set<string>();
3056
3062
for (let i = 0; i != inventory.Affiliations.length; ) {
3057
3063
if (set.has(inventory.Affiliations[i].Tag)) {