fix tests (from project-page switch 4 commits ago) and fix linting

This commit is contained in:
2024-11-03 15:23:03 -07:00
parent 4168c37074
commit 67b2b7199a
8 changed files with 56 additions and 36 deletions

View File

@@ -587,7 +587,12 @@ export async function setPlanInCache(
planCache.set(handleId, planSummary);
}
export async function getNewOffersToUser(axios: Axios, apiServer: string, activeDid: string, lastAckedOfferToUserJwtId?: string) {
export async function getNewOffersToUser(
axios: Axios,
apiServer: string,
activeDid: string,
lastAckedOfferToUserJwtId?: string,
) {
let url = `${apiServer}/api/v2/report/offers?recipientDid=${activeDid}`;
if (lastAckedOfferToUserJwtId) {
url += "&afterId=" + lastAckedOfferToUserJwtId;