Skip to content

Commit 8dda405

Browse files
Reaction Toast Fix: (#632)
- changed company ID reference to entire company reference
1 parent 3ebd921 commit 8dda405

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ dAPIClient.on(Events.MessageReactionAdd, async (reaction, user) => {
294294
// If extant toast, create Seconding
295295
const recipientIds = [hostMessage.author.id];
296296
const companyReceipt = { guildName: guild.name };
297-
goalProgress = await logicBlob.goals.progressGoal(guild.id, "secondings", interactingHunter, season);
297+
goalProgress = await logicBlob.goals.progressGoal(company, "secondings", interactingHunter, season);
298298
if (goalProgress.gpContributed > 0) {
299299
companyReceipt.gp = goalProgress.gpContributed;
300300
}
@@ -329,7 +329,7 @@ dAPIClient.on(Events.MessageReactionAdd, async (reaction, user) => {
329329
if (currentCompanyLevel > previousCompanyLevel) {
330330
companyReceipt.levelUp = currentCompanyLevel;
331331
}
332-
goalProgress = await logicBlob.goals.progressGoal(guild.id, "toasts", interactingHunter, season);
332+
goalProgress = await logicBlob.goals.progressGoal(company, "toasts", interactingHunter, season);
333333
if (goalProgress.gpContributed > 0) {
334334
companyReceipt.gp = goalProgress.gpContributed;
335335
}

0 commit comments

Comments
 (0)