@@ -905,13 +905,13 @@ func (*FakeQuerier) AcquireLock(_ context.Context, _ int64) error {
905
905
return xerrors .New ("AcquireLock must only be called within a transaction" )
906
906
}
907
907
908
- func (q * FakeQuerier )AcquireNotificationMessages (ctx context.Context ,arg database.AcquireNotificationMessagesParams ) ([]database.AcquireNotificationMessagesRow ,error ) {
908
+ func (* FakeQuerier )AcquireNotificationMessages (_ context.Context ,arg database.AcquireNotificationMessagesParams ) ([]database.AcquireNotificationMessagesRow ,error ) {
909
909
err := validateDatabaseType (arg )
910
910
if err != nil {
911
911
return nil ,err
912
912
}
913
-
914
- panic ( "not implemented" )
913
+ // nolint:nilnil // Irrelevant.
914
+ return nil , nil
915
915
}
916
916
917
917
func (q * FakeQuerier )AcquireProvisionerJob (_ context.Context ,arg database.AcquireProvisionerJobParams ) (database.ProvisionerJob ,error ) {
@@ -1176,22 +1176,20 @@ func (q *FakeQuerier) BatchUpdateWorkspaceLastUsedAt(_ context.Context, arg data
1176
1176
return nil
1177
1177
}
1178
1178
1179
- func (q * FakeQuerier )BulkMarkNotificationMessagesFailed (ctx context.Context ,arg database.BulkMarkNotificationMessagesFailedParams ) (int64 ,error ) {
1179
+ func (* FakeQuerier )BulkMarkNotificationMessagesFailed (_ context.Context ,arg database.BulkMarkNotificationMessagesFailedParams ) (int64 ,error ) {
1180
1180
err := validateDatabaseType (arg )
1181
1181
if err != nil {
1182
1182
return 0 ,err
1183
1183
}
1184
-
1185
- panic ("not implemented" )
1184
+ return - 1 ,nil
1186
1185
}
1187
1186
1188
- func (q * FakeQuerier )BulkMarkNotificationMessagesSent (ctx context.Context ,arg database.BulkMarkNotificationMessagesSentParams ) (int64 ,error ) {
1187
+ func (* FakeQuerier )BulkMarkNotificationMessagesSent (_ context.Context ,arg database.BulkMarkNotificationMessagesSentParams ) (int64 ,error ) {
1189
1188
err := validateDatabaseType (arg )
1190
1189
if err != nil {
1191
1190
return 0 ,err
1192
1191
}
1193
-
1194
- panic ("not implemented" )
1192
+ return - 1 ,nil
1195
1193
}
1196
1194
1197
1195
func (* FakeQuerier )CleanTailnetCoordinators (_ context.Context )error {
@@ -1529,8 +1527,8 @@ func (q *FakeQuerier) DeleteOAuth2ProviderAppTokensByAppAndUserID(_ context.Cont
1529
1527
return nil
1530
1528
}
1531
1529
1532
- func (q * FakeQuerier )DeleteOldNotificationMessages (ctx context.Context )error {
1533
- panic ( "not implemented" )
1530
+ func (* FakeQuerier )DeleteOldNotificationMessages (_ context.Context )error {
1531
+ return nil
1534
1532
}
1535
1533
1536
1534
func (q * FakeQuerier )DeleteOldProvisionerDaemons (_ context.Context )error {
@@ -1748,13 +1746,12 @@ func (q *FakeQuerier) DeleteWorkspaceAgentPortSharesByTemplate(_ context.Context
1748
1746
return nil
1749
1747
}
1750
1748
1751
- func (q * FakeQuerier )EnqueueNotificationMessage (ctx context.Context ,arg database.EnqueueNotificationMessageParams ) (database.NotificationMessage ,error ) {
1749
+ func (* FakeQuerier )EnqueueNotificationMessage (_ context.Context ,arg database.EnqueueNotificationMessageParams ) (database.NotificationMessage ,error ) {
1752
1750
err := validateDatabaseType (arg )
1753
1751
if err != nil {
1754
1752
return database.NotificationMessage {},err
1755
1753
}
1756
-
1757
- panic ("not implemented" )
1754
+ return database.NotificationMessage {},nil
1758
1755
}
1759
1756
1760
1757
func (q * FakeQuerier )FavoriteWorkspace (_ context.Context ,arg uuid.UUID )error {
@@ -1776,13 +1773,12 @@ func (q *FakeQuerier) FavoriteWorkspace(_ context.Context, arg uuid.UUID) error
1776
1773
return nil
1777
1774
}
1778
1775
1779
- func (q * FakeQuerier )FetchNewMessageMetadata (ctx context.Context ,arg database.FetchNewMessageMetadataParams ) (database.FetchNewMessageMetadataRow ,error ) {
1776
+ func (* FakeQuerier )FetchNewMessageMetadata (_ context.Context ,arg database.FetchNewMessageMetadataParams ) (database.FetchNewMessageMetadataRow ,error ) {
1780
1777
err := validateDatabaseType (arg )
1781
1778
if err != nil {
1782
1779
return database.FetchNewMessageMetadataRow {},err
1783
1780
}
1784
-
1785
- panic ("not implemented" )
1781
+ return database.FetchNewMessageMetadataRow {},nil
1786
1782
}
1787
1783
1788
1784
func (q * FakeQuerier )GetAPIKeyByID (_ context.Context ,id string ) (database.APIKey ,error ) {
@@ -6112,13 +6108,12 @@ func (q *FakeQuerier) InsertMissingGroups(_ context.Context, arg database.Insert
6112
6108
return newGroups ,nil
6113
6109
}
6114
6110
6115
- func (q * FakeQuerier )InsertNotificationTemplate (ctx context.Context ,arg database.InsertNotificationTemplateParams ) (database.NotificationTemplate ,error ) {
6111
+ func (* FakeQuerier )InsertNotificationTemplate (_ context.Context ,arg database.InsertNotificationTemplateParams ) (database.NotificationTemplate ,error ) {
6116
6112
err := validateDatabaseType (arg )
6117
6113
if err != nil {
6118
6114
return database.NotificationTemplate {},err
6119
6115
}
6120
-
6121
- panic ("not implemented" )
6116
+ return database.NotificationTemplate {},nil
6122
6117
}
6123
6118
6124
6119
func (q * FakeQuerier )InsertOAuth2ProviderApp (_ context.Context ,arg database.InsertOAuth2ProviderAppParams ) (database.OAuth2ProviderApp ,error ) {