Fix keyframes version update

This commit is contained in:
Zoe Roux 2024-08-12 00:30:49 +02:00
parent 3de97d2b1f
commit 3ef3ca3d04
No known key found for this signature in database

View File

@ -83,8 +83,8 @@ func (s *MetadataService) GetMetadata(path string, sha string) (*MediaInfo, erro
if err != nil {
return nil, err
}
tx.Exec(`update videos set keyframes = nil where sha = $1`, sha)
tx.Exec(`update audios set keyframes = nil where sha = $1`, sha)
tx.Exec(`update videos set keyframes = null where sha = $1`, sha)
tx.Exec(`update audios set keyframes = null where sha = $1`, sha)
tx.Exec(`update info set ver_keyframes = 0 where sha = $1`, sha)
err = tx.Commit()
if err != nil {