Fix updating of archive meta document
It's brainfart typo fixing time!
This commit is contained in:
parent
1821d3cb64
commit
8744307ee7
|
@ -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…
Reference in New Issue