mirror of
https://github.com/the-programmers-hangout/Hermes.git
synced 2026-09-04 09:15:59 +02:00
bug with decrementing emotes on remove
This commit is contained in:
@@ -103,7 +103,7 @@ class Emote extends Model
|
||||
->decrement('usage_count');
|
||||
}
|
||||
|
||||
UserGuildStat::where(['user_id' => $user->discord_id, 'guild_id' => $guildId])
|
||||
UserGuildStat::where(['emote_id' => $this->emote_id, 'user_id' => $user->discord_id, 'guild_id' => $guildId])
|
||||
->decrement('usage_count');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user