fix: persist settings for websocket groups

This commit is contained in:
richjohnrambo
2026-09-21 11:58:36 +08:00
parent c891afba73
commit 05ad37ba80
3 changed files with 168 additions and 2 deletions
+4
View File
@@ -304,6 +304,7 @@ type testGroupBusinessStore struct {
leftTopic string
leftUID types.Uid
updateSettingsErr error
getSettingsErr error
updateMemberErr error
}
@@ -319,6 +320,9 @@ func (s *testGroupBusinessStore) CreateSettings(_ types.TenantID, settings *type
}
func (s *testGroupBusinessStore) GetSettings(_ types.TenantID, topic string) (*types.GroupSettings, error) {
if s.getSettingsErr != nil {
return nil, s.getSettingsErr
}
if s.settings != nil {
return s.settings, nil
}