change Email

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + USERS_KEY + " SET " + EMAIL_KEY + "=:" + EMAIL_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun changeEmail(@Param(value = "email") newEmail: String, @Param(value = "id") id: String)

Method to execute the query to change the email of the EquinoxUser

Parameters

newEmail

: the new email of the user

id

: the identifier of the user