8622-testToMaster #1411

Merged
alexm merged 746 commits from 8622-testToMaster into master 2025-02-18 07:54:25 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 9fcea12580 - Show all commits

View File

@ -1,8 +1,8 @@
import axios from 'axios'; import axios from 'axios';
const method = { const method = {
supplier: 'SupplierRisk', supplier: 'SupplierRisks',
customer: 'ClientrRisk', customer: 'ClientRisks',
}; };
export async function getRisk(module, _filter) { export async function getRisk(module, _filter) {
const filter = { const filter = {
@ -10,7 +10,7 @@ export async function getRisk(module, _filter) {
include: { relation: 'company', scope: { fields: ['code'] } }, include: { relation: 'company', scope: { fields: ['code'] } },
}; };
return await axios(method, { return await axios(module, {
params: { filter: JSON.stringify(filter) }, params: { filter: JSON.stringify(filter) },
}); });
} }