principal

v0.1.40 v0.1.40
Vernon Keenan 2021-01-27 18:16:58 -08:00
parent 7424f60f77
commit a4a48a0051
1 changed files with 2 additions and 2 deletions

View File

@ -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,