Fix some lint error + change error handling

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-21 11:06:54 +04:00
parent d3333fd137
commit 937a0079fc
3 changed files with 5 additions and 7 deletions

View File

@@ -920,13 +920,14 @@ type MoveCookieToCategoryResult struct {
func (s *Service) MoveCookieToCategory(
ctx context.Context,
scope coredata.Scoper,
req MoveCookieToCategoryRequest,
) (*MoveCookieToCategoryResult, error) {
if err := req.Validate(); err != nil {
return nil, fmt.Errorf("invalid request: %w", err)
}
scope := coredata.NewScopeFromObjectID(req.SourceCookieCategoryID)
var result MoveCookieToCategoryResult
err := s.pg.WithTx(