feat: allow bulk deleting attribution groups for moderators (#6839)

* feat: allow bulk deleting attribution groups for moderators

* prepr
This commit is contained in:
aecsocket
2026-07-24 13:42:36 +00:00
committed by GitHub
parent e58af98f21
commit a6d9bb7b3e
13 changed files with 302 additions and 46 deletions
@@ -235,10 +235,7 @@ async function clearAllGroups() {
const groups = await client.labrinth.attribution_internal.listProjectAttribution(
props.project_id,
)
for (const group of groups) {
await client.labrinth.attribution_internal.deleteGroup(group.id)
}
await client.labrinth.attribution_internal.deleteGroups(groups.map((group) => group.id))
await queryClient.invalidateQueries({ queryKey: ['project-attribution', props.project_id] })
} catch (error) {