liquid_feedback_frontend
diff model/scheduled_notification_to_send.lua @ 1248:c0fd12b97d65
Changes on notifications system, newsletter support added
author | bsw |
---|---|
date | Tue Apr 05 20:40:37 2016 +0200 (2016-04-05) |
parents | |
children | 659e3eda2fad |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/model/scheduled_notification_to_send.lua Tue Apr 05 20:40:37 2016 +0200 1.3 @@ -0,0 +1,10 @@ 1.4 +ScheduledNotificationToSend = mondelefant.new_class() 1.5 +ScheduledNotificationToSend.table = 'scheduled_notification_to_send' 1.6 + 1.7 +function ScheduledNotificationToSend:get_next() 1.8 + return self:new_selector() 1.9 + :add_order_by("pending DESC") 1.10 + :limit(1) 1.11 + :optional_object_mode() 1.12 + :exec() 1.13 +end 1.14 \ No newline at end of file