Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 21, 2024
1 parent 6075f17 commit 255d895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assyst-core/src/task/tasks/refresh_entitlements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ pub async fn refresh_entitlements(assyst: ThreadSafeAssyst) {

// remove entitlements from the db that are not in the rest response
for entitlement in db_entitlements.values() {
if !entitlements.contains_key(&entitlement.guild_id) {
assyst.entitlements.lock().unwrap().remove(&entitlement.guild_id);
if !entitlements.contains_key(&entitlement.entitlement_id) {
assyst.entitlements.lock().unwrap().remove(&entitlement.entitlement_id);
info!(
"Removed expired entitlement {} (guild {})",
entitlement.entitlement_id, entitlement.guild_id
Expand Down

0 comments on commit 255d895

Please sign in to comment.