Set up CI, fix updating archive meta documents #10

Merged
raucao merged 10 commits from dev/testing into master 2022-08-12 15:04:54 +00:00
Showing only changes of commit 8744307ee7 - Show all commits

View File

@ -616,7 +616,7 @@ const ChatMessages = function (privateClient, publicClient) {
}
// Only update document if current date is newer than known "last"
if (Date.parse(meta.last.replace(/\//g,'-')) > Date.parse(this.date)) {
if (Date.parse(meta.last.replace(/\//g,'-')) < Date.parse(this.date)) {
console.debug('[chat-messages]', 'Updating meta document for channel');
meta.last = this.dateId;
await this.client.storeObject('daily-archive-meta', this.metaPath, meta);