Skip to content

Commit

Permalink
Return the newly updated favorites list, not the old one
Browse files Browse the repository at this point in the history
It actually doesn't matter that much that we don't pass the updated list, because the updated list only has the servers that were removed anyway
  • Loading branch information
MrPowerGamerBR committed May 12, 2024
1 parent 2e44706 commit b9b71dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ class DashboardRoute(loritta: LorittaBot) : RequiresDiscordLoginLocalizedRoute(l
it[UserWebsiteSettings.favoritedGuilds] = Json.encodeToString(updatedFavoritedGuilds)
}
}

return@newSuspendedTransaction updatedFavoritedGuilds
}

favoritedGuilds
return@newSuspendedTransaction null
}

val guilds = userGuilds.filter { LorittaWebsite.canManageGuild(it) }
Expand Down

0 comments on commit b9b71dd

Please sign in to comment.