Save() instead of Update() must be used for updating rows
This commit is contained in:
parent
5c423f63fc
commit
b1e2ac17bd
|
@ -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
|
||||
file.FileMissing = true
|
||||
conf.GetDb().Update(file)
|
||||
conf.GetDb().Save(&file)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue