fix: watchlist 500 from missing UUID and toast classList error

This commit is contained in:
2026-05-13 13:10:04 +02:00
parent 14b7668afa
commit ff15a82f10
3 changed files with 11 additions and 6 deletions

View File

@@ -6,6 +6,8 @@ import (
"mal/integrations/jikan"
"mal/internal/db"
"mal/internal/domain"
"github.com/google/uuid"
)
type watchlistService struct {
@@ -34,6 +36,7 @@ func (s *watchlistService) UpdateEntry(ctx context.Context, userID string, anime
}
_, err = s.repo.UpsertWatchListEntry(ctx, db.UpsertWatchListEntryParams{
ID: uuid.New().String(),
UserID: userID,
AnimeID: animeID,
Status: status,