Skip to content
Snippets Groups Projects
Verified Commit c2710546 authored by insert's avatar insert
Browse files

Use $lt and $gt instead of $lte and $gte.

parent d99c87d6
No related merge requests found
......@@ -503,11 +503,11 @@ pub fn messages(
let mut query = doc! { "channel": target.id };
if let Some(before) = &options.before {
query.insert("_id", doc! { "$lte": before });
query.insert("_id", doc! { "$lt": before });
}
if let Some(after) = &options.after {
query.insert("_id", doc! { "$gte": after });
query.insert("_id", doc! { "$gt": after });
}
let limit = if let Some(limit) = options.limit {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment