mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
fix: replace isProductiveEnvironment with isTestEnvironment
This commit is contained in:
committed by
Rainer Killinger
parent
2f13010480
commit
8c48552abf
@@ -37,7 +37,7 @@ export const multiSearchRouter = createRoute<SCMultiSearchResponse | SCTooManyRe
|
||||
const queryNames = Object.keys(request);
|
||||
|
||||
if (queryNames.length > configFile.backend.maxMultiSearchRouteQueries) {
|
||||
throw new SCTooManyRequestsErrorResponse(app.get('isProductiveEnvironment'));
|
||||
throw new SCTooManyRequestsErrorResponse(app.get('isTestEnvironment'));
|
||||
}
|
||||
|
||||
// get a map of promises for each query
|
||||
|
||||
@@ -97,7 +97,7 @@ export function createRoute<RETURNTYPE>(
|
||||
if (responseErrors.length > 0) {
|
||||
const validationError = new SCValidationErrorResponse(
|
||||
responseErrors,
|
||||
req.app.get('isProductiveEnvironment'),
|
||||
req.app.get('isTestEnvironment'),
|
||||
);
|
||||
const internalServerError = new SCInternalServerErrorResponse(
|
||||
validationError,
|
||||
|
||||
Reference in New Issue
Block a user