mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-02-16 10:45:15 +00:00
Populate status column.
This commit is contained in:
parent
7e50aef1cd
commit
d2fd3fe1fa
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ pub async fn insert_subscriber(
|
|||
) -> Result<(), sqlx::Error> {
|
||||
sqlx::query!(
|
||||
r#"
|
||||
INSERT INTO subscriptions (id, email, name, subscribed_at)
|
||||
VALUES ($1, $2, $3, $4)
|
||||
INSERT INTO subscriptions (id, email, name, subscribed_at, status)
|
||||
VALUES ($1, $2, $3, $4, 'confirmed')
|
||||
"#,
|
||||
Uuid::new_v4(),
|
||||
new_subscriber.email.as_ref(),
|
||||
|
|
Loading…
Reference in a new issue