🐛 Fix panic
This commit is contained in:
parent
0913521c13
commit
cfd1735aee
@ -97,7 +97,7 @@ func GetAttachmentCache(rid string) (models.Attachment, bool) {
|
|||||||
GetAttachmentCacheKey(rid),
|
GetAttachmentCacheKey(rid),
|
||||||
new(models.Attachment),
|
new(models.Attachment),
|
||||||
); err == nil {
|
); err == nil {
|
||||||
return val.(models.Attachment), true
|
return *val.(*models.Attachment), true
|
||||||
}
|
}
|
||||||
return models.Attachment{}, false
|
return models.Attachment{}, false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user