fix thread pagination

refactor logic

increase fetch limit for first relates

apply other format

Co-authored-by: Jason Volk <jason@zemos.net>
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Kirill Hmelnitski 2024-10-31 23:39:20 +03:00 committed by Jason Volk
parent 78aeb620bc
commit 2e4d9cb37c
3 changed files with 125 additions and 123 deletions

View file

@ -20,8 +20,8 @@ pub(crate) async fn get_relating_events_with_rel_type_and_event_type_route(
&body.event_id,
body.event_type.clone().into(),
body.rel_type.clone().into(),
body.from.as_ref(),
body.to.as_ref(),
body.from.as_deref(),
body.to.as_deref(),
body.limit,
body.recurse,
body.dir,
@ -51,8 +51,8 @@ pub(crate) async fn get_relating_events_with_rel_type_route(
&body.event_id,
None,
body.rel_type.clone().into(),
body.from.as_ref(),
body.to.as_ref(),
body.from.as_deref(),
body.to.as_deref(),
body.limit,
body.recurse,
body.dir,
@ -82,8 +82,8 @@ pub(crate) async fn get_relating_events_route(
&body.event_id,
None,
None,
body.from.as_ref(),
body.to.as_ref(),
body.from.as_deref(),
body.to.as_deref(),
body.limit,
body.recurse,
body.dir,