diff options
Diffstat (limited to 'src/db/incomes.rs')
-rw-r--r-- | src/db/incomes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/incomes.rs b/src/db/incomes.rs index cbbfce7..5f44398 100644 --- a/src/db/incomes.rs +++ b/src/db/incomes.rs @@ -133,9 +133,9 @@ pub async fn create(pool: &SqlitePool, i: &Create) -> Option<i64> { let res = sqlx::query( r#" INSERT INTO - incomes(user_id, date, amount, created_at) + incomes(user_id, date, amount) VALUES - (?, ?, ?, datetime()) + (?, ?, ?) "#, ) .bind(i.user_id) |