parent
7424f60f77
commit
a4a48a0051
|
@ -14,7 +14,7 @@ type StashPDFParams struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// StashPDF stores a PDF in the stash database
|
// 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: 📥")
|
sugar.Debugf("render.stashPDF: 📥")
|
||||||
var title string
|
var title string
|
||||||
var fileName string
|
var fileName string
|
||||||
|
@ -41,7 +41,7 @@ func StashPDF(params StashPDFParams, principal *User) (*Document, error) {
|
||||||
Filename: fileName,
|
Filename: fileName,
|
||||||
HTML: params.Document.HTML,
|
HTML: params.Document.HTML,
|
||||||
ObjectType: params.Document.SagaType,
|
ObjectType: params.Document.SagaType,
|
||||||
OwnerID: principal.ID,
|
OwnerID: params.Principal.ID,
|
||||||
ParentID: params.Document.ParentID,
|
ParentID: params.Document.ParentID,
|
||||||
Ref: ref,
|
Ref: ref,
|
||||||
Title: title,
|
Title: title,
|
||||||
|
|
Loading…
Reference in New Issue