fix: refs #7134 getRiskComposable
This commit is contained in:
parent
6c96089445
commit
9fcea12580
|
@ -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) },
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue