insertReleaseDeletedNotification

@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + NOTIFICATIONS_KEY + " (" + IDENTIFIER_KEY + "," + LOGO_URL_KEY + "," + RELEASE_VERSION_KEY + "," + USER_KEY + " )" + " VALUES (" + ":" + IDENTIFIER_KEY + "," + ":" + LOGO_URL_KEY + "," + ":" + RELEASE_VERSION_KEY + "," + ":" + USER_KEY + ")", nativeQuery = true)
abstract fun insertReleaseDeletedNotification(@Param(value = "id") id: String, @Param(value = "logo_url") projectLogo: String, @Param(value = "release_version") releaseVersion: String, @Param(value = "user") userId: String)

Method to execute the query to insert a new NovaNotification when a release has been deleted

Parameters

id

: the identifier of the notification

projectLogo

: the logo url of the related project

releaseVersion

: the version of the related release

userId

: the identifier of the user who the notification belongs