fix: find_instance shows visibility

pull/32/head
db0 2023-09-18 16:05:20 +02:00
parent 7678fe8294
commit b33937ae65
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class FindInstance(Resource):
@api.expect(get_parser)
@api.marshal_with(models.response_model_instances, code=200, description='Instance', skip_none=True)
@api.marshal_with(models.response_model_instances_visibility, code=200, description='Instance', skip_none=True)
@api.response(401, 'Invalid API Key', models.response_model_error)
def get(self):
'''Retrieve instance information via API Key
@ -21,4 +21,4 @@ class FindInstance(Resource):
if not user:
raise e.NotFound("API key not found. Please Claim an instance first and use the API key that is PM'd to you")
instance = database.find_instance_by_user(user)
return instance.get_details(),200
return instance.get_details(show_visibilities=True),200