Ok so the issue is that the scripts don't handle well the case when the current document doesn't have a previous revision. The problem can be reproduced with these steps:
- Find a page that has only 1 revision
- Edit it, then delete the new revision created
- Then trigger the notif scheduler job
|