Browse Source

Fix runtime issue when starting up without any data

shorten
benji7425 4 years ago
parent
commit
89174aebe2
  1. 2
      app/models/guild-data.js

2
app/models/guild-data.js

@ -4,7 +4,7 @@ const Util = require("discordjs-util");
module.exports = class GuildData {
constructor({ id, feeds }) {
this.id = id;
this.feeds = feeds.map(feed => new FeedData(feed));
this.feeds = (feeds || []).map(feed => new FeedData(feed));
}
cachePastPostedLinks(guild) {

Loading…
Cancel
Save