mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
simplify
This commit is contained in:
parent
60caa3153b
commit
b4ba1daa76
2 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ export const CreateBanCaseOnManualBanEvt = modActionsEvt({
|
|||
const config = mod instanceof UnknownUser ? pluginData.config.get() : await pluginData.config.getForUser(mod);
|
||||
|
||||
if (config.create_cases_for_manual_actions) {
|
||||
reason = relevantAuditLogEntry.reason || "";
|
||||
reason = relevantAuditLogEntry.reason ?? "";
|
||||
createdCase = await casesPlugin.createCase({
|
||||
userId: user.id,
|
||||
modId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue