mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 19:52:53 +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);
|
const queryNames = Object.keys(request);
|
||||||
|
|
||||||
if (queryNames.length > configFile.backend.maxMultiSearchRouteQueries) {
|
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
|
// get a map of promises for each query
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export function createRoute<RETURNTYPE>(
|
|||||||
if (responseErrors.length > 0) {
|
if (responseErrors.length > 0) {
|
||||||
const validationError = new SCValidationErrorResponse(
|
const validationError = new SCValidationErrorResponse(
|
||||||
responseErrors,
|
responseErrors,
|
||||||
req.app.get('isProductiveEnvironment'),
|
req.app.get('isTestEnvironment'),
|
||||||
);
|
);
|
||||||
const internalServerError = new SCInternalServerErrorResponse(
|
const internalServerError = new SCInternalServerErrorResponse(
|
||||||
validationError,
|
validationError,
|
||||||
|
|||||||
Reference in New Issue
Block a user