Skip to content

Commit

Permalink
chore (con-415): renamed queryParams
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaheinl-fft committed May 24, 2024
1 parent bc6438f commit c4fa620
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/fft-api/stock/fftStockService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ export class FftStockService {
const queryParams: QueryParams = {};

if (facilityRef) {
queryParams['facilityRefs'] = facilityRef;
queryParams['facilityRef'] = facilityRef;
}

if (tenantArticleIds) {
tenantArticleIds = tenantArticleIds.slice(0, 499);
queryParams['tenantArticleIds'] = tenantArticleIds;
queryParams['tenantArticleId'] = tenantArticleIds;
}

if (locationRefs) {
locationRefs = locationRefs.slice(0, 499);
queryParams['locationRefs'] = locationRefs;
queryParams['locationRef'] = locationRefs;
}

if (size && size <= 100) {
Expand Down Expand Up @@ -144,7 +144,7 @@ export class FftStockService {
public async getStockSummaries(
size?: number,
startAfterId?: string,
serviceTypes?: FacilityServiceType[],
facilityServiceTypes?: FacilityServiceType[],
facilityStatuses?: FacilityStatus[],
facilityRefs?: string[],
allowStale?: boolean,
Expand All @@ -162,8 +162,8 @@ export class FftStockService {
queryParams['startAfterId'] = startAfterId;
}

if (serviceTypes && serviceTypes.length > 0) {
queryParams['serviceTypes'] = serviceTypes;
if (facilityServiceTypes && facilityServiceTypes.length > 0) {
queryParams['facilityServiceTypes'] = facilityServiceTypes;
}

if (facilityStatuses) {
Expand Down

0 comments on commit c4fa620

Please sign in to comment.