Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
order rtc list by created_at asc
Browse files Browse the repository at this point in the history
created_at desc order changes if new rtcs were created and right now
we sometimes erroneously create multiple rtcs

sorting by created_at asc will always return the oldest rtc first
so without any changes to frontend logic we can amend the problem of
stream splitting across multiple rtcs
  • Loading branch information
khodzha committed Nov 11, 2020
1 parent 6a08c34 commit 02e6b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/rtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl ListQuery {
q = q.limit(limit);
}

q.order_by(rtc::created_at.desc()).get_results(conn)
q.order_by(rtc::created_at.asc()).get_results(conn)
}
}

Expand Down

0 comments on commit 02e6b48

Please sign in to comment.