component AP gateway (http/outbox): return data when no RSM is available

This commit is contained in:
Goffi 2023-03-16 15:56:11 +01:00
commit 3994b8d40a

View file

@ -722,6 +722,10 @@ class HTTPAPGServer(web_resource.Resource):
"orderedItems": ordered_items
}
if "rsm" not in metadata:
# no RSM available, we return what we have
return ret_data
# AP OrderedCollection must be in reversed chronological order, thus the opposite
# of what we get with RSM (at least with Libervia Pubsub)
if not metadata["complete"]: