fix sql bug

This commit is contained in:
mykola2312 2024-03-03 19:28:15 +02:00
parent f1b8f596d7
commit d71462589f

View file

@ -11,7 +11,7 @@ pub async fn create_user(
) -> Result<User, sqlx::Error> {
sqlx::query(
"INSERT OR IGNORE INTO user
(tg_id, username, first_name, last_name, can_download, is_admin)
(tg_id, username, first_name, last_name, can_download, is_admin, has_private_chat)
VALUES ($1,$2,$3,$4,$5,$6,$7);",
)
.bind(user.id.0 as i64)