1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

missingThumbnails never can be null. It is not needed to delete it.

#437
This commit is contained in:
Patrik J. Braun 2022-06-28 09:32:38 +02:00
parent 849ebbec9e
commit 3fdc08942a

View File

@ -164,10 +164,6 @@ export class ContentWrapper {
} }
} }
if (m.missingThumbnails === 0) {
delete m.missingThumbnails;
}
if (MediaDTOUtils.isPhoto(m)) { if (MediaDTOUtils.isPhoto(m)) {
delete (m as VideoDTO).metadata.bitRate; delete (m as VideoDTO).metadata.bitRate;
delete (m as VideoDTO).metadata.duration; delete (m as VideoDTO).metadata.duration;