Skip to content
Snippets Groups Projects

feat: [AoU-421] create notifications for all publication's validators when a...

Merged Nicolas.Rod requested to merge rodn-421-notifications-deposits-to-validate into master
Files
2
@@ -125,13 +125,13 @@ public class NotificationService extends AouResourceService<Notification> {
* Update the sentTime property of a Notification
* Note: Transactional is required to allow the method to be called from a scheduled task context that runs outside of the main thread JPA session
*
* @param resId
* @param notificationId
* @param sentTime
* @return
*/
@Transactional
public Notification updateSentTime(String resId, OffsetDateTime sentTime) {
Notification notif = this.findOne(resId);
public Notification updateSentTime(String notificationId, OffsetDateTime sentTime) {
Notification notif = this.findOne(notificationId);
notif.setSentTime(sentTime);
return this.save(notif);
}
Loading