fix insert typo

This commit is contained in:
Erik Winter 2023-12-25 11:13:11 +01:00
parent 84fcab202f
commit 8e38f88abe
2 changed files with 5 additions and 2 deletions

View File

@ -7,3 +7,6 @@ run-tui:
build-api:
go build -o emdb-api ./cmd/api-service/service.go
deploy-api:
ssh ewintr.nl deploy/emdb-api.sh

View File

@ -92,7 +92,7 @@ func (s *SQLite) Store(m *model.Movie) error {
directors := strings.Join(m.Directors, ",")
if _, err := s.db.Exec(`REPLACE INTO movie (id, tmdb_id, imdb_id, title, english_title, year, directors, summary, watched_on, rating, comment)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
m.ID, m.IMDBID, m.IMDBID, m.Title, m.EnglishTitle, m.Year, directors, m.Summary, m.WatchedOn, m.Rating, m.Comment); err != nil {
m.ID, m.TMDBID, m.IMDBID, m.Title, m.EnglishTitle, m.Year, directors, m.Summary, m.WatchedOn, m.Rating, m.Comment); err != nil {
return fmt.Errorf("%w: %v", ErrSqliteFailure, err)
}