From aca2acb56770a3ff2175d718cf45f282e04859a9 Mon Sep 17 00:00:00 2001 From: LukeMathWalker Date: Fri, 16 Jul 2021 09:00:42 +0100 Subject: [PATCH] Fix name conflict with `name` from the `bunyan` format. --- src/routes/subscriptions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/subscriptions.rs b/src/routes/subscriptions.rs index a967ad1..1c977a1 100644 --- a/src/routes/subscriptions.rs +++ b/src/routes/subscriptions.rs @@ -25,8 +25,8 @@ impl TryInto for 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, pool: web::Data) -> HttpResponse {