Add/store channel archive metadata document #8
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/7-archive_metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In order to be able to easily retrieve the last archive date and document, this adds a '/meta' doc, which contains both the first and last archive dates/IDs, to a channel's root directory.
Caveat: I have encountered what looks like a bug with non-explicit caching turned on in the remoteStorage client. So this requires instantiating RS clients with the
cache: false
option for now.closes #7
Add/store chat archive metadata documentto Add/store channel archive metadata documentutACK
@ -15,0 +18,4 @@
const sortedNumbers = Object.keys(items)
.map(i => parseInt(i))
.filter(i => !Number.isNaN(i))
.sort(function(a, b) { return a - b });
.sort()
is enough, as it's the default sort order.