EN-94: fix ShippersView.vue pagination, change public-companies to companies endpoint
This commit is contained in:
@@ -50,7 +50,7 @@ export const getNews = async() => {
|
||||
|
||||
export const getCompanies = async(filter) => {
|
||||
try {
|
||||
const endpoint = `/v1/public-companies/${filter}`;
|
||||
const endpoint = `/v1/companies/${filter}`;
|
||||
console.log(endpoint);
|
||||
const {data} = await api.get(endpoint);
|
||||
console.log(data);
|
||||
@@ -75,7 +75,7 @@ export const getUsersCompany = async(filter) => {
|
||||
|
||||
export const getPublicUsersCompany = async(filter) => {
|
||||
try {
|
||||
const endpoint = `/v1/public-companies/users/${filter}`;
|
||||
const endpoint = `/v1/companies/users/${filter}`;
|
||||
// console.log({endpoint});
|
||||
const {data} = await api.get(endpoint);
|
||||
console.log(data.data)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
onMounted(() => {
|
||||
filterQuery.value.company_type = 'shipper';
|
||||
filterQuery.value.limit = 'elements=' + limit;
|
||||
filterQuery.value.page = "page=1";
|
||||
filterQuery.value.page = "page=0";
|
||||
getCompaniesData(filterQuery.value);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user