Fix name conflict with name from the bunyan format.

This commit is contained in:
LukeMathWalker 2021-07-16 09:00:42 +01:00
parent 5c5ee7b756
commit aca2acb567

View file

@ -25,8 +25,8 @@ impl TryInto<NewSubscriber> for FormData {
name = "Adding a new subscriber", name = "Adding a new subscriber",
skip(form, pool), skip(form, pool),
fields( fields(
email = %form.email, subscriber_email = %form.email,
name = %form.name subscriber_name = %form.name
) )
)] )]
pub async fn subscribe(form: web::Form<FormData>, pool: web::Data<PgPool>) -> HttpResponse { pub async fn subscribe(form: web::Form<FormData>, pool: web::Data<PgPool>) -> HttpResponse {