fix: Don't limit number of auth tokens to 1

This commit is contained in:
Hocuri
2026-01-21 16:23:58 +01:00
parent c3d4c438e6
commit 7ff5cd63f8

View File

@@ -66,7 +66,7 @@ pub async fn lookup_all(context: &Context, namespace: Namespace) -> Result<Vec<S
context
.sql
.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,),
|row| Ok(row.get(0)?),
)