fix: refs #7134 getRiskComposable

This commit is contained in:
Javier Segarra 2025-01-13 19:17:54 +01:00
parent 6c96089445
commit 9fcea12580
1 changed files with 3 additions and 3 deletions

View File

@ -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) },
});
}