Lines 471-491 in https://github.com/IBM/CodeEngine/blob/main/cloudant-change-listener/job/job.mjs should reflect the returned JSON which is "lastSeq" not "last_seq"
@reggeenr - I just diagnosed this and found the response data was ..... "result": { "lastSeq": ......
I hope this helps!