publish Update

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + UPDATES_KEY + " SET " + UPDATE_PUBLISH_DATE_KEY + "=:" + UPDATE_PUBLISH_DATE_KEY + "," + UPDATE_PUBLISHED_BY_KEY + "=:" + UPDATE_PUBLISHED_BY_KEY + "," + UPDATE_STATUS_KEY + "= 'PUBLISHED'" + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun publishUpdate(@Param(value = "id") updateId: String, @Param(value = "publish_date") publishDate: Long, @Param(value = "published_by") publishedBy: String)

Method to execute the query to publish an existing com.tecknobit.pandoro.services.projects.entities.ProjectUpdate

Parameters

updateId

: the update identifier

publishDate

: the publishing date of the update

publishedBy

: who publish the update