fix insert typo
This commit is contained in:
parent
84fcab202f
commit
8e38f88abe
5
Makefile
5
Makefile
|
@ -6,4 +6,7 @@ run-tui:
|
||||||
go run ./cmd/terminal-client/main.go
|
go run ./cmd/terminal-client/main.go
|
||||||
|
|
||||||
build-api:
|
build-api:
|
||||||
go build -o emdb-api ./cmd/api-service/service.go
|
go build -o emdb-api ./cmd/api-service/service.go
|
||||||
|
|
||||||
|
deploy-api:
|
||||||
|
ssh ewintr.nl deploy/emdb-api.sh
|
|
@ -92,7 +92,7 @@ func (s *SQLite) Store(m *model.Movie) error {
|
||||||
directors := strings.Join(m.Directors, ",")
|
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)
|
if _, err := s.db.Exec(`REPLACE INTO movie (id, tmdb_id, imdb_id, title, english_title, year, directors, summary, watched_on, rating, comment)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
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)
|
return fmt.Errorf("%w: %v", ErrSqliteFailure, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue