diff options
Diffstat (limited to 'models/attachment.go')
-rw-r--r-- | models/attachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/attachment.go b/models/attachment.go index 104ad1d92f..5fd90bef13 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -89,7 +89,7 @@ func NewAttachment(name string, buf []byte, file multipart.File) (_ *Attachment, func getAttachmentByUUID(e Engine, uuid string) (*Attachment, error) { attach := &Attachment{UUID: uuid} - has, err := x.Get(attach) + has, err := e.Get(attach) if err != nil { return nil, err } else if !has { |