Skip to content

Commit

Permalink
added oidn number to count
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 9, 2023
1 parent 2db458f commit c445263
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pwa/src/apiService/resources/filterCount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export default class FilterCount {
}

public getCategoryCount = async (): Promise<any> => {
const endpoint = "/openWOO?_queries[]=Categorie";
let endpoint = "/openWOO?_queries[]=Categorie";

if (process.env.GATSBY_OIDN_NUMBER) {
endpoint += `&oidn=${process.env.GATSBY_OIDN_NUMBER}`;
}

const { data } = await this._send(this._instance, "GET", endpoint);

Expand Down

0 comments on commit c445263

Please sign in to comment.