fix: remove both option for api endpoints. it just makes things complicated
This commit is contained in:
@@ -12,7 +12,6 @@ class EnvironmentVariables extends Controller
|
||||
{
|
||||
ray()->clearAll();
|
||||
$teamId = get_team_id_from_token();
|
||||
$both = $request->query->get('both') ?? false;
|
||||
if (is_null($teamId)) {
|
||||
return invalid_token();
|
||||
}
|
||||
@@ -31,12 +30,6 @@ class EnvironmentVariables extends Controller
|
||||
], 404);
|
||||
}
|
||||
$env->delete();
|
||||
if ($both) {
|
||||
$found_other_pair = EnvironmentVariable::where('application_id', $found_app->id)->where('key', $env->key)->first();
|
||||
if ($found_other_pair) {
|
||||
$found_other_pair->delete();
|
||||
}
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
|
||||
Reference in New Issue
Block a user