From b1e2ac17bdcdf8ebb9fed2b90ca204486b6ec569 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 27 Sep 2018 15:16:37 +0200 Subject: [PATCH] Save() instead of Update() must be used for updating rows --- internal/api/thumbnails.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/thumbnails.go b/internal/api/thumbnails.go index a298d87c0..abe99e297 100644 --- a/internal/api/thumbnails.go +++ b/internal/api/thumbnails.go @@ -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) } }) }