Skip to content

Commit

Permalink
Merge pull request #312 from Airwav/patch-2
Browse files Browse the repository at this point in the history
fixed strikes are null after updating
  • Loading branch information
Sai Teja Madha authored Feb 15, 2023
2 parents 6ab0293 + a7f450e commit 614c8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/routes/guild-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ router.post("/:serverID/basic", CheckAuth, async (req, res) => {

// AUTOMOD CONFIGURATION
if (Object.prototype.hasOwnProperty.call(data, "automodUpdate")) {
if (data.max_strikes != settings.automod.strikes) {
if (data.max_strikes && data.max_strikes !== settings.automod.strikes) {
settings.automod.strikes = data.max_strikes;
}

if (data.automod_action !== settings.automod.action) {
if (data.automod_action && data.automod_action !== settings.automod.action) {
settings.automod.action = data.automod_action;
}

Expand Down

0 comments on commit 614c8bc

Please sign in to comment.