add "+" to numbers if hit limit (>50), fix linting
This commit is contained in:
@@ -591,6 +591,10 @@ export async function setPlanInCache(
|
||||
planCache.set(handleId, planSummary);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns { data: Array<OfferSummaryRecord>, hitLimit: boolean }
|
||||
*/
|
||||
export async function getNewOffersToUser(
|
||||
axios: Axios,
|
||||
apiServer: string,
|
||||
@@ -603,10 +607,12 @@ export async function getNewOffersToUser(
|
||||
}
|
||||
const headers = await getHeaders(activeDid);
|
||||
const response = await axios.get(url, { headers });
|
||||
const offers = response.data.data;
|
||||
return offers;
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns { data: Array<OfferToPlanSummaryRecord>, hitLimit: boolean }
|
||||
*/
|
||||
export async function getNewOffersToUserProjects(
|
||||
axios: Axios,
|
||||
apiServer: string,
|
||||
@@ -619,8 +625,7 @@ export async function getNewOffersToUserProjects(
|
||||
}
|
||||
const headers = await getHeaders(activeDid);
|
||||
const response = await axios.get(url, { headers });
|
||||
const offers = response.data.data;
|
||||
return offers;
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user