Skip to content

Commit

Permalink
Remove unused details in user verication email. (#58)
Browse files Browse the repository at this point in the history
Removes binding of variables to verification which are no longer used by
the template.
  • Loading branch information
turboMaCk authored and ICTGuerrilla committed Apr 23, 2023
1 parent 7982733 commit 39f4867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions orca/src/processing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,7 @@ async fn process(

message
.add_recipient(notification_email.to_string(), "Notifications".to_string())
.attach(pdf_attachement)
.bind(TemplateContentItem::new(
"first_name",
from_optional_sring(&reg_details.first_name),
))
.bind(TemplateContentItem::new(
"last_name",
from_optional_sring(&reg_details.last_name),
))
.bind(TemplateContentItem::new("email", &reg_details.email))
.bind(TemplateContentItem::new(
"phone_number",
from_optional_sring(&reg_details.phone_number),
));
.attach(pdf_attachement);

email_sender
.send_template(
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
with pkgs;
mkShell {
name = "itc-union-main-system-shell";
buildInputs = [ refinery-cli postgresql_15 gnumake ];
buildInputs = [ refinery-cli postgresql_15 gnumake docker ];
}

0 comments on commit 39f4867

Please sign in to comment.