From a98acb9c8b86a2c2f35841c86d3c3f1d7c176b61 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Mon, 14 Aug 2023 09:18:05 +0200 Subject: fix: Add on fail for exif Also remove unique index from thumbails path, because on fail it saves a empty path. --- pkg/database/sql/media.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/database') diff --git a/pkg/database/sql/media.go b/pkg/database/sql/media.go index 4b48608..b13e267 100644 --- a/pkg/database/sql/media.go +++ b/pkg/database/sql/media.go @@ -43,8 +43,8 @@ type ( MediaThumbnail struct { gorm.Model - Path string `gorm:"not null;unique"` - MediaID uint `gorm:"not null"` + Path string + MediaID uint `gorm:"not null"` Media Media } -- cgit v1.2.3