Skip to content

Commit

Permalink
fix: enable fissures, specify cache location
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Jan 31, 2021
1 parent 6c4371a commit 0dc8717
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ mypm2.json
commands.json

# Docker
docker-compose.yaml
docker-compose.yaml

.cache/
4 changes: 2 additions & 2 deletions src/notifications/Notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function buildNotifiableData(newData, platform, notified) {
featuredDeals: newData.flashSales
.filter(d => d.isFeatured && !notified.includes(d.id)),
fissures: newData.fissures
.filter(f => !f.expired && !notified.includes(f.id)),
.filter(f => f.active && !notified.includes(f.id)),
news: newData.news
.filter(n => !n.primeAccess && !n.update
&& !updtReg.test(n.message) && !n.stream && !notified.includes(n.id)),
Expand Down Expand Up @@ -233,7 +233,7 @@ class Notifier {
this.sendDarvo(dailyDeals, platform);
this.sendEvent(events, platform);
this.sendFeaturedDeals(featuredDeals, platform);
//this.sendFissures(fissures, platform);
this.sendFissures(fissures, platform);
this.sendNews(news, platform);
this.sendStreams(streams, platform);
this.sendPopularDeals(popularDeals, platform);
Expand Down
3 changes: 2 additions & 1 deletion src/notifications/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const hydrateQueries = async () => {
};

const initCache = async () => {
deps.workerCache = flatCache.load('genesis:worker');
deps.workerCache = flatCache.load('worker',
require('path').resolve('../../.cache'));

// generate guild cache data if not present
const currentGuilds = deps.workerCache.getKey('guilds');
Expand Down

0 comments on commit 0dc8717

Please sign in to comment.