add continuing tab to watchlist

This commit is contained in:
2026-04-06 23:38:30 +02:00
parent 8687f93f31
commit 9223176344
11 changed files with 253 additions and 180 deletions

View File

@@ -26,6 +26,7 @@ type AddRequest struct {
TitleJapanese string
ImageURL string
Status string
Airing bool
}
func (s *Service) AddEntry(ctx context.Context, userID string, req AddRequest) error {
@@ -39,6 +40,7 @@ func (s *Service) AddEntry(ctx context.Context, userID string, req AddRequest) e
TitleEnglish: sql.NullString{String: req.TitleEnglish, Valid: req.TitleEnglish != ""},
TitleJapanese: sql.NullString{String: req.TitleJapanese, Valid: req.TitleJapanese != ""},
ImageUrl: req.ImageURL,
Airing: sql.NullBool{Bool: req.Airing, Valid: true},
})
if err != nil {
return fmt.Errorf("failed to save anime reference: %w", err)