code cleanup

This commit is contained in:
2024-02-21 14:46:17 +01:00
parent e9bee963fe
commit 6ed28994c6
6 changed files with 11 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ impl Family {
.unwrap()
}
pub async fn new(db: &SqlitePool) -> i64 {
pub async fn insert(db: &SqlitePool) -> i64 {
let result: SqliteQueryResult = sqlx::query("INSERT INTO family DEFAULT VALUES")
.execute(db)
.await