diff --git a/app/stash-services.go b/app/stash-services.go index cdecffa..4cecba4 100644 --- a/app/stash-services.go +++ b/app/stash-services.go @@ -14,7 +14,7 @@ type StashPDFParams struct { } // StashPDF stores a PDF in the stash database -func StashPDF(params StashPDFParams, principal *User) (*Document, error) { +func StashPDF(params StashPDFParams) (*Document, error) { sugar.Debugf("render.stashPDF: 📥") var title string var fileName string @@ -41,7 +41,7 @@ func StashPDF(params StashPDFParams, principal *User) (*Document, error) { Filename: fileName, HTML: params.Document.HTML, ObjectType: params.Document.SagaType, - OwnerID: principal.ID, + OwnerID: params.Principal.ID, ParentID: params.Document.ParentID, Ref: ref, Title: title,