fix maket endpoints

This commit is contained in:
Sirttas
2026-06-11 20:41:38 +02:00
parent acde42b406
commit 3981475c55
+9 -9
View File
@@ -1,10 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { getMarketTypes, TaxInput, useApraisalStore, useMarketTaxStore } from "@/market"; import {getMarketTypes, TaxInput, useApraisalStore, useMarketTaxStore} from "@/market";
import { BuyModal } from '@/market/acquisition'; import {BuyModal} from '@/market/acquisition';
import { ScanResult, ScanResultTable, toScanResult } from '@/market/scan'; import {ScanResult, ScanResultTable, toScanResult} from '@/market/scan';
import { marketApi } from "@/mammon"; import {marketApi} from "@/mammon";
import { useStorage } from "@vueuse/core"; import {useStorage} from "@vueuse/core";
import { ref, watch } from 'vue'; import {ref, watch} from 'vue';
const buyModal = ref<typeof BuyModal>(); const buyModal = ref<typeof BuyModal>();
@@ -18,9 +18,9 @@ const scan = async () => {
loading.value = true; loading.value = true;
try { try {
const { data } = await marketApi.scanMarket( const { data } = await marketApi.scanMarket(
String(days.value), days.value,
String(marketTaxStore.brokerFee / 100), marketTaxStore.brokerFee / 100,
String(marketTaxStore.scc / 100) marketTaxStore.scc / 100
); );
const types = await getMarketTypes(data.map(r => r.marketTypeId)); const types = await getMarketTypes(data.map(r => r.marketTypeId));
const prices = await apraisalStore.getPrices(types); const prices = await apraisalStore.getPrices(types);