change Email

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

Method to execute the query to change the user's email

Parameters

userId

: the user identifier

email

: the new user email to set