diff --git a/src/composables/getRisk.js b/src/composables/getRisk.js index d2519db3a..566c74987 100644 --- a/src/composables/getRisk.js +++ b/src/composables/getRisk.js @@ -1,8 +1,8 @@ import axios from 'axios'; const method = { - supplier: 'SupplierRisk', - customer: 'ClientrRisk', + supplier: 'SupplierRisks', + customer: 'ClientRisks', }; export async function getRisk(module, _filter) { const filter = { @@ -10,7 +10,7 @@ export async function getRisk(module, _filter) { include: { relation: 'company', scope: { fields: ['code'] } }, }; - return await axios(method, { + return await axios(module, { params: { filter: JSON.stringify(filter) }, }); }