Jooq save or update method returns an error

Solution 1:

got it work with

.onConflict(Users.USERS.PHONENUMBER)
.doUpdate()
.set(Users.USERS.FIRSTNAME, user.getFirstname())