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:
parent
56e728a008
commit
2a6ad10acc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user