(e Engine, issueID int64)
| 127 | } |
| 128 | |
| 129 | func getAttachmentsByIssueID(e Engine, issueID int64) ([]*Attachment, error) { |
| 130 | attachments := make([]*Attachment, 0, 5) |
| 131 | return attachments, e.Where("issue_id = ? AND comment_id = 0", issueID).Find(&attachments) |
| 132 | } |
| 133 | |
| 134 | // GetAttachmentsByIssueID returns all attachments of an issue. |
| 135 | func GetAttachmentsByIssueID(issueID int64) ([]*Attachment, error) { |
no test coverage detected