Save() instead of Update() must be used for updating rows

This commit is contained in:
Michael Mayer 2018-09-27 15:16:37 +02:00
parent 5c423f63fc
commit b1e2ac17bd

View file

@ -57,7 +57,7 @@ func GetThumbnail(router *gin.RouterGroup, conf *photoprism.Config) {
// Set missing flag so that the file doesn't show up in search results anymore // Set missing flag so that the file doesn't show up in search results anymore
file.FileMissing = true file.FileMissing = true
conf.GetDb().Update(file) conf.GetDb().Save(&file)
} }
}) })
} }