Quellcode durchsuchen

uncommented article post

Pablo Barrera Yaksic vor 7 Monaten
Ursprung
Commit
aed6aaf393
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      package.json
  2. 2 2
      src/portales/portal.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "bot-noticias",
-  "version": "0.0.7",
+  "version": "0.0.8",
   "description": "Bot que busca noticias y las replica en mastodon.cl",
   "main": "dist/index.js",
   "scripts": {

+ 2 - 2
src/portales/portal.ts

@@ -75,8 +75,8 @@ export default class Portal {
 
         console.log(`\n${this._name} | Sending`, message);
 
-        // await this._mastodonClient.v1.statuses.create({ status: message, mediaIds });
-        // await this._redisClient.store(article.link, date, { EX: 60 * 60 * 24 }); // EX: 24 hrs expiration
+        await this._mastodonClient.v1.statuses.create({ status: message, mediaIds });
+        await this._redisClient.store(article.link, date, { EX: 60 * 60 * 24 }); // EX: 24 hrs expiration
         totalPublished++
       }
       console.log(`${this._name} | Published ${totalPublished} new articles`);