Skip to content

Commit

Permalink
change log table to api_log, added id field
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangerlach committed Apr 1, 2024
1 parent 1289885 commit 3d4af2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified db_v2.sqlite3
Binary file not shown.
2 changes: 1 addition & 1 deletion src/webs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ async fn log(req: HttpRequest) -> impl Responder {
}
let mut conn = get_conn().await;

let logs = sqlx::query_as!(Logs, "SELECT from_ip, to_id, logged_at, user FROM log INNER JOIN peer ON peer.id = log.to_id ORDER BY logged_at DESC LIMIT 50").fetch_all(&mut conn).await;
let logs = sqlx::query_as!(Logs, "SELECT from_ip, to_id, logged_at, user FROM api_log INNER JOIN peer ON peer.id = api_log.to_id ORDER BY logged_at DESC LIMIT 50").fetch_all(&mut conn).await;
// Render the data in a table.
let table = format!(
r#"
Expand Down

0 comments on commit 3d4af2a

Please sign in to comment.