diff options
Diffstat (limited to 'src/db/categories.rs')
-rw-r--r-- | src/db/categories.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/categories.rs b/src/db/categories.rs index 05b1323..0e2a28c 100644 --- a/src/db/categories.rs +++ b/src/db/categories.rs @@ -60,9 +60,9 @@ pub async fn create(pool: &SqlitePool, c: &Create) -> Option<i64> { let res = sqlx::query( r#" INSERT INTO - categories(name, color, created_at) + categories(name, color) VALUES - (?, ?, datetime()) + (?, ?) "#, ) .bind(c.name.clone()) |