mark As Read

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + CHANGELOGS_KEY + " SET " + CHANGELOG_READ_KEY + "=true WHERE " + CHANGELOG_OWNER_KEY + "=:" + CHANGELOG_OWNER_KEY + " AND " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun markAsRead(@Param(value = "owner") owner: String, @Param(value = "id") changelogId: String)

Method to execute the query to mark as read a Changelog

Parameters

owner

The owner of the changelog

changelogId

The changelog identifier