|
@@ -65,7 +65,7 @@ export default class SismologiaCL {
|
|
console.log(`\n${this._name} | Sending`, message);
|
|
console.log(`\n${this._name} | Sending`, message);
|
|
|
|
|
|
await this._mastodonClient.v1.statuses.create({ status: message, mediaIds });
|
|
await this._mastodonClient.v1.statuses.create({ status: message, mediaIds });
|
|
- await this._redisClient.store(report.link, date, { EX: 60 * 60 * 24 }); // EX: 24 hrs expiration
|
|
|
|
|
|
+ await this._redisClient.store(report.link, date, { EX: 60 * 60 * 168 }); // EX: 1 week
|
|
totalPublished++;
|
|
totalPublished++;
|
|
}
|
|
}
|
|
console.log(`${this._name} | Published ${totalPublished} new reports`);
|
|
console.log(`${this._name} | Published ${totalPublished} new reports`);
|