Skip to content

Commit

Permalink
Disable some stuff to do with donationsFullyProcessed/mini credits (f…
Browse files Browse the repository at this point in the history
…or ESAW24)
  • Loading branch information
zoton2 committed Feb 17, 2024
1 parent 0001d74 commit 3403cb3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion shared
5 changes: 3 additions & 2 deletions src/extension/omnibar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ sc.on('timerStopped', () => {
)
: undefined;

// DISABLED FOR NOW (ESAW24).
// Push actual data to the queue.
omnibar.value.alertQueue.push({
/* omnibar.value.alertQueue.push({
type: 'MiniCredits',
id: uuid(),
data: {
Expand All @@ -429,5 +430,5 @@ sc.on('timerStopped', () => {
subscribers,
cheers,
},
});
}); */
});
10 changes: 5 additions & 5 deletions src/extension/tracker/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Configschema } from '@esa-layouts/types/schemas';
import type { Tracker } from '@shared/types';
import clone from 'clone';
import type { NeedleResponse } from 'needle';
import needle from 'needle';
import { DeepWritable } from 'ts-essentials';
import type { DeepWritable } from 'ts-essentials';
import { get as nodecg } from '../util/nodecg';
import { mq } from '../util/rabbitmq';
import { donationTotal, notableDonations } from '../util/replicants';
import { donationTotal } from '../util/replicants';

export const eventInfo: Tracker.EventInfo[] = [];
const eventConfig = nodecg().bundleConfig.event;
Expand Down Expand Up @@ -76,8 +75,9 @@ mq.evt.on('donationTotalUpdated', (data) => {
}
});

// DISABLED FOR NOW (ESAW24)
// Triggered when a new donation is fully processed on the tracker.
mq.evt.on('donationFullyProcessed', (data) => {
/* mq.evt.on('donationFullyProcessed', (data) => {
if (data.comment_state === 'APPROVED') {
// eslint-disable-next-line no-underscore-dangle
nodecg().log.debug('[Tracker] Received new donation with ID %s', data._id);
Expand All @@ -87,7 +87,7 @@ mq.evt.on('donationFullyProcessed', (data) => {
notableDonations.value.length = Math.min(notableDonations.value.length, 20);
}
}
});
}); */

let isFirstLogin = true;
async function loginToTracker(): Promise<void> {
Expand Down

0 comments on commit 3403cb3

Please sign in to comment.