mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
fix: Don't limit number of auth tokens to 1
This commit is contained in:
@@ -66,7 +66,7 @@ pub async fn lookup_all(context: &Context, namespace: Namespace) -> Result<Vec<S
|
|||||||
context
|
context
|
||||||
.sql
|
.sql
|
||||||
.query_map_vec(
|
.query_map_vec(
|
||||||
"SELECT token FROM tokens WHERE namespc=? ORDER BY timestamp DESC LIMIT 1",
|
"SELECT token FROM tokens WHERE namespc=? ORDER BY timestamp DESC",
|
||||||
(namespace,),
|
(namespace,),
|
||||||
|row| Ok(row.get(0)?),
|
|row| Ok(row.get(0)?),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user