Fix review

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-21 11:27:25 +04:00
parent 937a0079fc
commit 98487953b9
5 changed files with 27 additions and 4 deletions

View File

@@ -949,6 +949,10 @@ func (s *Service) MoveCookieToCategory(
return fmt.Errorf("cannot load target cookie category: %w", err)
}
if source.ID == target.ID {
return ErrSameCategoryMove
}
if source.CookieBannerID != target.CookieBannerID {
return ErrCategoriesBannerMismatch
}