Fixed incorrect handbook price using CustomItemService (!301)

The handbookPriceRoubles member of base class NewItemDetails was never used to create the new item.

Co-authored-by: Refringe <me@refringe.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/301
Co-authored-by: micyael <micyael@noreply.dev.sp-tarkov.com>
Co-committed-by: micyael <micyael@noreply.dev.sp-tarkov.com>
This commit is contained in:
micyael 2024-04-23 10:15:29 +00:00 committed by chomp
parent 8366dd355d
commit 1881a0842a
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,21 @@
name: Clear Item DB Website Cache
on:
push:
branches: [ master ]
jobs:
clear-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: filter
uses: dorny/paths-filter@v3.0.2
with:
list-files: shell
filters: |
database:
- 'project/assets/database/**'
- name: Send Refresh Request
if: steps.filter.outputs.database == 'true'
run: curl --max-time 30 https://db.sp-tarkov.com/api/refresh

View File

@ -72,7 +72,7 @@ export class CustomItemService
this.addToItemsDb(newItemId, itemClone);
this.addToHandbookDb(newItemId, newItemDetails.handbookParentId, newItemDetails.fleaPriceRoubles);
this.addToHandbookDb(newItemId, newItemDetails.handbookParentId, newItemDetails.handbookPriceRoubles);
this.addToLocaleDbs(newItemDetails.locales, newItemId);
@ -116,7 +116,7 @@ export class CustomItemService
this.addToItemsDb(newItem._id, newItem);
this.addToHandbookDb(newItem._id, newItemDetails.handbookParentId, newItemDetails.fleaPriceRoubles);
this.addToHandbookDb(newItem._id, newItemDetails.handbookParentId, newItemDetails.handbookPriceRoubles);
this.addToLocaleDbs(newItemDetails.locales, newItem._id);