db migration 1.0.2, now stores and indexes date of content delivered to subscriber...
[websub-hub] / src / db / postgres / sql / subscription-delivery-success.sql
1 --
2 UPDATE subscription SET
3 content_delivered = now(),
4 latest_content_delivered = $(topicContentUpdated),
5 delivery_attempts_since_success = 0,
6 delivery_next_attempt = '-infinity'::timestamptz
7 WHERE
8 topic_id = $(topicId) AND callback = $(callback)