From 2a6ad10acca9350c3678945e802c8ef53587fff4 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 5 Apr 2024 10:32:14 +0200 Subject: [PATCH] chore: more revert --- src/lib/features/playground/playground.ts | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/lib/features/playground/playground.ts b/src/lib/features/playground/playground.ts index 178929808a..41f5da2cd5 100644 --- a/src/lib/features/playground/playground.ts +++ b/src/lib/features/playground/playground.ts @@ -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); }