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"
|
// 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');
|
console.debug('[chat-messages]', 'Updating meta document for channel');
|
||||||
meta.last = this.dateId;
|
meta.last = this.dateId;
|
||||||
await this.client.storeObject('daily-archive-meta', this.metaPath, meta);
|
await this.client.storeObject('daily-archive-meta', this.metaPath, meta);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user