(e Engine, releaseID int64)
| 147 | } |
| 148 | |
| 149 | func getAttachmentsByReleaseID(e Engine, releaseID int64) ([]*Attachment, error) { |
| 150 | attachments := make([]*Attachment, 0, 10) |
| 151 | return attachments, e.Where("release_id = ?", releaseID).Find(&attachments) |
| 152 | } |
| 153 | |
| 154 | // GetAttachmentsByReleaseID returns all attachments of a release. |
| 155 | func GetAttachmentsByReleaseID(releaseID int64) ([]*Attachment, error) { |
no test coverage detected