Software /
code /
prosody
Changeset
10925:73e95ecec733
mod_storage_sql: Fix incorrect results when fetching items before specific archive id
Copy/paste error, introduced in deb68066c7aa
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 12 Jun 2020 16:54:38 +0100 |
parents | 10924:0c072dd69603 |
children | 10926:c55bd98a54f8 |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Thu Jun 11 22:02:54 2020 +0200 +++ b/plugins/mod_storage_sql.lua Fri Jun 12 16:54:38 2020 +0100 @@ -391,7 +391,7 @@ end if query.before then local before_id = nil; - for row in engine:select(id_lookup_sql, query.after, args[1], args[2], args[3]) do + for row in engine:select(id_lookup_sql, query.before, args[1], args[2], args[3]) do before_id = row[1]; end if not before_id then