Pārlūkot izejas kodu

uncommented article post

Pablo Barrera Yaksic 7 mēneši atpakaļ
vecāks
revīzija
aed6aaf393
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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`);