aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/src/parameters.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-api/src/parameters.ts')
-rw-r--r--packages/sra-api/src/parameters.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sra-api/src/parameters.ts b/packages/sra-api/src/parameters.ts
index dac898931..bfa261df0 100644
--- a/packages/sra-api/src/parameters.ts
+++ b/packages/sra-api/src/parameters.ts
@@ -20,7 +20,7 @@ export const paginationParameters: ParameterObject[] = [
},
];
-export const networkdIdParameter = {
+export const networkdIdParameter: ParameterObject = {
name: 'network_id',
in: 'query',
description: 'The id of the Ethereum network',
@@ -33,5 +33,5 @@ export const networkdIdParameter = {
export const generateParameters = (parameters: ParameterObject[], isPaginated: boolean = false): ParameterObject[] => {
const optionalParameters = isPaginated ? paginationParameters : [];
- return [...optionalParameters, ...parameters];
+ return [networkdIdParameter, ...optionalParameters, ...parameters];
};