From 1c95d51de6602e20fcab836a880a694d6afe2f55 Mon Sep 17 00:00:00 2001 From: Julian Gallimore Date: Tue, 16 Jan 2024 09:50:56 +0100 Subject: [PATCH] Lets not send verify email when manually verifying in API --- app/controllers/api/v2/admin_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v2/admin_controller.rb b/app/controllers/api/v2/admin_controller.rb index 5a710ddb..8dcec773 100644 --- a/app/controllers/api/v2/admin_controller.rb +++ b/app/controllers/api/v2/admin_controller.rb @@ -23,7 +23,7 @@ def create_user logger.error ex.message error! :bad_request end - UserMailer.welcome(@user.id).deliver_now + # TODO: Send verify email if not verified render_json ApiUserSerializer.new(@user, {}).serialized_json end