fix no columns found to update error when recalculating group access

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:49 -04:00
parent 5472587c3a
commit c934365546
+1 -1
View File
@@ -135,7 +135,7 @@ func RecalculateGroupAccess(ctx context.Context, g *group_model.Group, isNew boo
"type": u.Type,
"team_id": t.ID,
"group_id": g.ID,
}).Update(&group_model.GroupUnit{
}).Cols("access_mode").Update(&group_model.GroupUnit{
AccessMode: newAccessMode,
}); err != nil {
return err