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:
parent
8366dd355d
commit
1881a0842a
21
.gitea/workflows/clear-itemdb-cache.yaml
Normal file
21
.gitea/workflows/clear-itemdb-cache.yaml
Normal 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
|
@ -72,7 +72,7 @@ export class CustomItemService
|
|||||||
|
|
||||||
this.addToItemsDb(newItemId, itemClone);
|
this.addToItemsDb(newItemId, itemClone);
|
||||||
|
|
||||||
this.addToHandbookDb(newItemId, newItemDetails.handbookParentId, newItemDetails.fleaPriceRoubles);
|
this.addToHandbookDb(newItemId, newItemDetails.handbookParentId, newItemDetails.handbookPriceRoubles);
|
||||||
|
|
||||||
this.addToLocaleDbs(newItemDetails.locales, newItemId);
|
this.addToLocaleDbs(newItemDetails.locales, newItemId);
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ export class CustomItemService
|
|||||||
|
|
||||||
this.addToItemsDb(newItem._id, newItem);
|
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);
|
this.addToLocaleDbs(newItemDetails.locales, newItem._id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user