清理代码库
All checks were successful
Go CI / test-and-build (push) Successful in 43s

This commit is contained in:
2026-04-06 13:17:57 +08:00
parent eda0ac9e40
commit a8d976b97e
9 changed files with 94 additions and 571 deletions

View File

@@ -12,7 +12,7 @@ func NewMediaRepository(db *sql.DB) *MediaRepository {
func (r *MediaRepository) Get(id int) (MediaFile, error) {
var m MediaFile
rows, err := r.db.Query("SELECT id, path, library_id FROM media_files WHERE id = $1", id)
rows, err := r.db.Query("SELECT id, path, library_id FROM media_files WHERE id = ?", id)
if err != nil {
return MediaFile{}, err
}