@@ -199,6 +199,7 @@ type data struct {
199
199
lastUpdateCheck []byte
200
200
announcementBanners []byte
201
201
healthSettings []byte
202
+ notificationsSettings []byte
202
203
applicationName string
203
204
logoURL string
204
205
appSecurityKey string
@@ -917,14 +918,6 @@ func (q *FakeQuerier) getLatestWorkspaceAppByTemplateIDUserIDSlugNoLock(ctx cont
917
918
return database.WorkspaceApp {}, sql .ErrNoRows
918
919
}
919
920
920
- func (q * FakeQuerier ) GetNotificationSettings (ctx context.Context ) (string , error ) {
921
- panic ("not implemented" )
922
- }
923
-
924
- func (q * FakeQuerier ) UpsertNotificationSettings (ctx context.Context , value string ) error {
925
- panic ("not implemented" )
926
- }
927
-
928
921
func (* FakeQuerier ) AcquireLock (_ context.Context , _ int64 ) error {
929
922
return xerrors .New ("AcquireLock must only be called within a transaction" )
930
923
}
@@ -2769,7 +2762,14 @@ func (q *FakeQuerier) GetNotificationMessagesByStatus(_ context.Context, arg dat
2769
2762
}
2770
2763
2771
2764
func (q * FakeQuerier ) GetNotificationsSettings (ctx context.Context ) (string , error ) {
2772
- panic ("not implemented" )
2765
+ q .mutex .RLock ()
2766
+ defer q .mutex .RUnlock ()
2767
+
2768
+ if q .notificationsSettings == nil {
2769
+ return "{}" , nil
2770
+ }
2771
+
2772
+ return string (q .notificationsSettings ), nil
2773
2773
}
2774
2774
2775
2775
func (q * FakeQuerier ) GetOAuth2ProviderAppByID (_ context.Context , id uuid.UUID ) (database.OAuth2ProviderApp , error ) {
@@ -8725,8 +8725,12 @@ func (q *FakeQuerier) UpsertLogoURL(_ context.Context, data string) error {
8725
8725
return nil
8726
8726
}
8727
8727
8728
- func (q * FakeQuerier ) UpsertNotificationsSettings (ctx context.Context , value string ) error {
8729
- panic ("not implemented" )
8728
+ func (q * FakeQuerier ) UpsertNotificationsSettings (_ context.Context , data string ) error {
8729
+ q .mutex .RLock ()
8730
+ defer q .mutex .RUnlock ()
8731
+
8732
+ q .notificationsSettings = []byte (data )
8733
+ return nil
8730
8734
}
8731
8735
8732
8736
func (q * FakeQuerier ) UpsertOAuthSigningKey (_ context.Context , value string ) error {
0 commit comments