Skip to content
Snippets Groups Projects
Commit 348b94e7 authored by Carsten Reckord's avatar Carsten Reckord Committed by Martin Lowe
Browse files

Fix /listings/id endpoint


Return listing object directly instead of wrapping
it in a list.

Signed-off-by: default avatarCarsten Reckord <reckord@yatta.de>
parent 6cfe4a6a
No related branches found
No related tags found
1 merge request!78Base implementation of Solr+MariaDB combo persistence and index
......@@ -140,7 +140,7 @@ public class ListingResource {
throw new NoResultException("Could not find any documents with ID " + listingId);
}
// return the results as a response
return responseBuider.build(listingId, params, cachedResults.get());
return responseBuider.build(listingId, params, cachedResults.get().get(0));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment