fix(api): Add required db session parameter to the target api handler
@@ -28,7 +28,7 @@ class TargetConfigHandler(APIRequestHandler):
if not target_id:
# Get all filter data here, so that it can be passed
filter_data = dict(self.request.arguments)
- self.write(get_target_config_dicts(filter_data))
+ self.write(get_target_config_dicts(self.session, filter_data))
else:
self.write(get_target_config_by_id(self.session, target_id))
except InvalidTargetReference as e:
