parent
7424f60f77
commit
a4a48a0051
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue