fix large batch

This commit is contained in:
Pascal Fischer
2025-07-03 19:00:15 +02:00
parent 542dbdb41c
commit 376394f7f9

View File

@@ -472,7 +472,7 @@ func (s *SqlStore) SaveGroups(ctx context.Context, lockStrength LockingStrength,
UpdateAll: true,
},
).
Save(&groups)
Create(&groups)
if result.Error != nil {
log.WithContext(ctx).Errorf("failed to save groups to store: %v", result.Error)
return status.Errorf(status.Internal, "failed to save groups to store")