Set up CI, fix updating archive meta documents #10
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user