1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

chore: more revert

This commit is contained in:
Thomas Heartman 2024-04-05 10:32:14 +02:00
parent 56e728a008
commit 2a6ad10acc
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -125,21 +125,16 @@ export default class PlaygroundController extends Controller {
? Number.parseInt(payload?.value)
: 15000;
const { result, invalidContextProperties } =
await this.playgroundService.evaluateAdvancedQuery(
req.body.projects || '*',
req.body.environments,
req.body.context,
limit,
extractUserIdFromUser(user),
);
const result = await this.playgroundService.evaluateAdvancedQuery(
req.body.projects || '*',
req.body.environments,
req.body.context,
limit,
extractUserIdFromUser(user),
);
const response: AdvancedPlaygroundResponseSchema =
advancedPlaygroundViewModel(
req.body,
result,
invalidContextProperties,
);
advancedPlaygroundViewModel(req.body, result);
res.json(response);
}