Fix name conflict with name from the bunyan format.

This commit is contained in:
LukeMathWalker 2021-07-16 09:00:42 +01:00
parent c8396cb078
commit fbdb7aebe6

View file

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