From 7663cea2ea0d34c0da0312e51425064cb9d66710 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 19 May 2020 09:09:58 -0500 Subject: [PATCH] Fix tagline bug --- TODO.text | 1 - app/controllers/api/v1/Profile.controller.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TODO.text b/TODO.text index a6c866b..2935cae 100644 --- a/TODO.text +++ b/TODO.text @@ -1,4 +1,3 @@ -- Tagline bug - cannot save with empty text - App setup wizard - SAML IAM handling - LDAP IAM handling diff --git a/app/controllers/api/v1/Profile.controller.js b/app/controllers/api/v1/Profile.controller.js index 39923e6..a63b944 100644 --- a/app/controllers/api/v1/Profile.controller.js +++ b/app/controllers/api/v1/Profile.controller.js @@ -65,8 +65,7 @@ class ProfileController extends Controller { user.first_name = req.body.first_name user.last_name = req.body.last_name user.email = req.body.email - if ( req.body.tagline ) user.tagline = req.body.tagline - else delete user.tagline + user.tagline = req.body.tagline // Save the record await user.save()