diff options
Diffstat (limited to 'source/rss.js')
| -rw-r--r-- | source/rss.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/rss.js b/source/rss.js index d41c9eb..7029102 100644 --- a/source/rss.js +++ b/source/rss.js @@ -4,21 +4,11 @@ const rss = require('rss') class RSS { constructor(x) { this.object = { - feed: null, baseUrl: x.baseUrl, } } - async GetFeed(x) { - if (this.object.feed) { - return this.object.feed - } else { - return await this.#CreateFeed(x).then(feed => { - this.object.feed = feed - return this.object.feed - }) - } - } + async GetFeed(x) {return await this.#CreateFeed(x).then(feed => {return feed})} async #CreateFeed(x) { return blog.ReadBlogs().then(blogs => { |
