Skip to content

Commit

Permalink
avniproject/avni-product#1646 | restore removal of user.setEmail()
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Sep 10, 2024
1 parent e7d0d7c commit 9709ddc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.avni.server.web;
package org.avni.server.web;

import org.avni.server.dao.CatchmentRepository;
import org.avni.server.dao.OrganisationRepository;
Expand Down Expand Up @@ -162,6 +162,7 @@ public void save(@RequestBody UserBulkUploadContract[] userContracts) {
user.setOperatingIndividualScope(OperatingIndividualScope.valueOf(userContract.getOperatingIndividualScope()));
user.setSettings(userContract.getSettings());
userService.setPhoneNumber(userContract.getPhoneNumber(), user, RegionUtil.getCurrentUserRegion());
user.setEmail(userContract.getEmail());
user.setAuditInfo(userService.getCurrentUser());
User savedUser = userService.save(user);
if (newUser) userService.addToDefaultUserGroup(savedUser);
Expand Down

0 comments on commit 9709ddc

Please sign in to comment.