fix maket endpoints
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { getMarketTypes, TaxInput, useApraisalStore, useMarketTaxStore } from "@/market";
|
||||
import { BuyModal } from '@/market/acquisition';
|
||||
import { ScanResult, ScanResultTable, toScanResult } from '@/market/scan';
|
||||
import { marketApi } from "@/mammon";
|
||||
import { useStorage } from "@vueuse/core";
|
||||
import { ref, watch } from 'vue';
|
||||
import {getMarketTypes, TaxInput, useApraisalStore, useMarketTaxStore} from "@/market";
|
||||
import {BuyModal} from '@/market/acquisition';
|
||||
import {ScanResult, ScanResultTable, toScanResult} from '@/market/scan';
|
||||
import {marketApi} from "@/mammon";
|
||||
import {useStorage} from "@vueuse/core";
|
||||
import {ref, watch} from 'vue';
|
||||
|
||||
const buyModal = ref<typeof BuyModal>();
|
||||
|
||||
@@ -18,9 +18,9 @@ const scan = async () => {
|
||||
loading.value = true;
|
||||
try {
|
||||
const { data } = await marketApi.scanMarket(
|
||||
String(days.value),
|
||||
String(marketTaxStore.brokerFee / 100),
|
||||
String(marketTaxStore.scc / 100)
|
||||
days.value,
|
||||
marketTaxStore.brokerFee / 100,
|
||||
marketTaxStore.scc / 100
|
||||
);
|
||||
const types = await getMarketTypes(data.map(r => r.marketTypeId));
|
||||
const prices = await apraisalStore.getPrices(types);
|
||||
|
||||
Reference in New Issue
Block a user