Fix create error
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled

This commit is contained in:
2025-03-23 14:02:42 +01:00
parent 1c3fa7b839
commit 59636dc54e
2 changed files with 7 additions and 5 deletions

View File

@@ -116,13 +116,14 @@ async fn create_service(db: Database, Json(data): Json<CreateServiceData>) -> im
let service = sqlx::query_as!(
Service,
r#"
INSERT INTO services (token, "user", status, cache, username) VALUES ($1, $2, $3, $4, $5) RETURNING *
INSERT INTO services (token, "user", status, cache, username, created_time) VALUES ($1, $2, $3, $4, $5, $6) RETURNING *
"#,
token,
user,
status,
cache,
username
username,
chrono::Local::now()
)
.fetch_one(&db.0)
.await