diff --git a/backend/models/postgis/user.py b/backend/models/postgis/user.py index a284653ac7..fb75ae9d46 100644 --- a/backend/models/postgis/user.py +++ b/backend/models/postgis/user.py @@ -109,7 +109,7 @@ def update(self, user_dto: UserDTO): try: is_field_nullable = self.__table__.columns[attr].nullable - if is_field_nullable: + if is_field_nullable and value is not None: setattr(self, attr, value) elif value is not None: setattr(self, attr, value)