Commit 145d31e4 authored by nivetha's avatar nivetha
Browse files

Fixed issue with updating user profile

Showing with 2 additions and 1 deletion
+2 -1
......@@ -182,7 +182,8 @@ public class UserDaoImpl implements UserDao {
public User update(final User user) {
try {
jdbcTemplate.update(UserQueries.UPDATE_USER,
new Object[] { user.getEmailId(), user.getUsername(), user.getPhoneNo(), user.getIsActive(),
new Object[] { user.getEmailId(), user.getUsername(), user.getPhoneNo(),
(user.getIsActive() != null) ? user.getIsActive() : Boolean.TRUE,
(user.getIsDeleted() != null) ? user.getIsDeleted() : Boolean.FALSE, user.getTimeZone(),
user.getAvatarUrl(), user.getId() });
} catch (Exception e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment