Skip to content

Commit

Permalink
fix: Missing journalling parameter on tryLog().
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Sep 19, 2024
1 parent 24aac0d commit a071abd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/library/services/prompts/verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,11 @@ class VerificationPromptService extends PromptService<{
),
);

await this.client.tryLog("entryRequestAccept", { guildId: guild.id, args: [author, voter] });
await this.client.tryLog("entryRequestAccept", {
guildId: guild.id,
journalling: this.guildDocument.isJournalled("verification"),
args: [author, voter],
});
} else if (verdict === "rejected") {
await authorDocument.update(this.client, () => {
authorDocument.setAuthorisationStatus({ guildId: this.guildIdString, status: "rejected" });
Expand All @@ -610,7 +614,11 @@ class VerificationPromptService extends PromptService<{
),
);

await this.client.tryLog("entryRequestReject", { guildId: guild.id, args: [author, voter] });
await this.client.tryLog("entryRequestReject", {
guildId: guild.id,
journalling: this.guildDocument.isJournalled("verification"),
args: [author, voter],
});
}

return true;
Expand Down

0 comments on commit a071abd

Please sign in to comment.