Server/project/src
DrakiaXYZ 19013a478f If a preset has a different _id property than its object key, output an error and skip it. (!233)
This resolves an issue where a mod with bad preset data is able to break loot generation

Can be tested by changing the "\_id" property of an item preset in globals.json, and seeing the error output to the console.

A better solution for the future may be to deprecate the "\_id" property entirely, and use just the object key, however that would have more far reaching changes compared to this simple fix

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/233
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-24 23:26:27 +00:00
..
callbacks Add maxPatrolValue route for module to pull data from. Added sandboxMaxPatrolvalue to location.json. linting on location.json 2024-02-16 16:17:55 +00:00
context Formatting 2024-02-02 15:00:21 -05:00
controllers If a preset has a different _id property than its object key, output an error and skip it. (!233) 2024-02-24 23:26:27 +00:00
di EXPERIMENTAL - pass output object into handleItemEvent and into move function 2024-02-10 15:44:21 +00:00
generators Cleanup of date calculation code 2024-02-23 16:10:18 +00:00
helpers Add code to add items to a wallets flee slot if available 2024-02-22 13:52:59 +00:00
ide Import path alias on the whole project (!157) 2023-10-19 17:21:17 +00:00
loaders Fixes Linting Issues 2024-02-02 15:00:21 -05:00
models Move itemLimit code to be across all bot containers instead of per 2024-02-22 16:34:15 +00:00
routers Add maxPatrolValue route for module to pull data from. Added sandboxMaxPatrolvalue to location.json. linting on location.json 2024-02-16 16:17:55 +00:00
servers Adjustments to profile saving logging logic 2024-02-10 10:07:40 +00:00
services Move itemLimit code to be across all bot containers instead of per 2024-02-22 16:34:15 +00:00
utils Format draw() 2024-02-20 09:12:16 +00:00
ErrorHandler.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
Program.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00