mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix video files duplicated when fps is null
Null values are not considered equal in a UNIQUE index
This commit is contained in:
parent
60e74f80d8
commit
2e7cf5ae0c
6 changed files with 38 additions and 5 deletions
|
@ -478,7 +478,7 @@ function videoFileActivityUrlToDBAttributes (videoCreated: VideoModel, videoObje
|
|||
resolution: fileUrl.height,
|
||||
size: fileUrl.size,
|
||||
videoId: videoCreated.id,
|
||||
fps: fileUrl.fps
|
||||
fps: fileUrl.fps || -1
|
||||
} as VideoFileModel
|
||||
attributes.push(attribute)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue