fix query

This commit is contained in:
yggverse 2024-10-05 05:05:18 +03:00
parent aad0e266f6
commit 4fee1c06a3

View File

@ -32,7 +32,7 @@ impl Database {
pub fn records(&self, app_id: &i64) -> Result<Vec<Table>, Error> { pub fn records(&self, app_id: &i64) -> Result<Vec<Table>, Error> {
let mut statement = self let mut statement = self
.connection .connection
.prepare("SELECT `id`, `app_id` WHERE `app_id` = ?")?; .prepare("SELECT `id`, `app_id` FROM `app_browser` WHERE `app_id` = ?")?;
let result = statement.query_map([app_id], |row| { let result = statement.query_map([app_id], |row| {
Ok(Table { Ok(Table {