Skip to content

Commit

Permalink
fix: add updated mutes without a reason to the case log
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyowo committed Nov 9, 2024
1 parent eb5fda8 commit f8db4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/plugins/Mutes/functions/muteUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export async function muteUser(
if (theCase) {
// Update old case
const noteDetails = [`Mute updated to ${muteTime ? timeUntilUnmuteStr : "indefinite"}`];
const reasons = reason ? [reason] : [];
const reasons = reason ? [reason] : ["No reason specified"];
if (muteOptions.caseArgs?.extraNotes) {
reasons.push(...muteOptions.caseArgs.extraNotes);
}
Expand Down

0 comments on commit f8db4e5

Please sign in to comment.