ChannelArchiver: fix archiving of the wrong channel
This commit is contained in:
parent
66ac85e300
commit
64f7b8cce4
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ export class ChannelArchiverPlugin extends ZeppelinPlugin {
|
||||||
|
|
||||||
while (archivedMessages < maxMessagesToArchive) {
|
while (archivedMessages < maxMessagesToArchive) {
|
||||||
const messagesToFetch = Math.min(MAX_MESSAGES_PER_FETCH, maxMessagesToArchive - archivedMessages);
|
const messagesToFetch = Math.min(MAX_MESSAGES_PER_FETCH, maxMessagesToArchive - archivedMessages);
|
||||||
const messages = await msg.channel.getMessages(messagesToFetch, previousId);
|
const messages = await args.channel.getMessages(messagesToFetch, previousId);
|
||||||
|
|
||||||
for (const message of messages) {
|
for (const message of messages) {
|
||||||
const ts = moment.utc(message.timestamp).format("YYYY-MM-DD HH:mm:ss");
|
const ts = moment.utc(message.timestamp).format("YYYY-MM-DD HH:mm:ss");
|
||||||
|
|
Loading…
Add table
Reference in a new issue