From afd6f898239bf9cc5f20718fe402b0c457519809 Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte <39946305+gmgigi96@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:35:19 +0200 Subject: [PATCH] fix scan public links (#49) --- pkg/cbox/utils/conversions.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cbox/utils/conversions.go b/pkg/cbox/utils/conversions.go index 534ed830a8..84752ba9e5 100644 --- a/pkg/cbox/utils/conversions.go +++ b/pkg/cbox/utils/conversions.go @@ -19,6 +19,7 @@ package utils import ( + "database/sql" "strings" "time" @@ -51,7 +52,7 @@ type DBShare struct { Quicklink bool Description string NotifyUploads bool - NotifyUploadsExtraRecipients string + NotifyUploadsExtraRecipients sql.NullString } // FormatGrantee formats a CS3API grantee to a string. @@ -257,6 +258,6 @@ func ConvertToCS3PublicShare(s DBShare) *link.PublicShare { Quicklink: s.Quicklink, Description: s.Description, NotifyUploads: s.NotifyUploads, - NotifyUploadsExtraRecipients: s.NotifyUploadsExtraRecipients, + NotifyUploadsExtraRecipients: s.NotifyUploadsExtraRecipients.String, } }