Preferences: Support Create+Update+Delete over apiserver (#111715)

This commit is contained in:
Ryan McKinley
2025-10-02 21:58:08 +03:00
committed by GitHub
parent 5a5aac1d6b
commit 0af6efb096
20 changed files with 969 additions and 177 deletions
+2 -2
View File
@@ -272,8 +272,8 @@ func (s *Service) GetDefaults() *pref.Preference {
}
}
func (s *Service) DeleteByUser(ctx context.Context, userID int64) error {
return s.store.DeleteByUser(ctx, userID)
func (s *Service) Delete(ctx context.Context, cmd *pref.DeleteCommand) error {
return s.store.Delete(ctx, cmd)
}
func parseCookiePreferences(prefs []pref.CookieType) (map[string]struct{}, error) {