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()