|
|
@@ -1549,7 +1549,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error { |
|
|
|
} |
|
|
|
releaseAttachments := make([]string, 0, len(attachments)) |
|
|
|
for i := 0; i < len(attachments); i++ { |
|
|
|
releaseAttachments = append(releaseAttachments, attachments[i].UUID) |
|
|
|
releaseAttachments = append(releaseAttachments, attachments[i].RelativePath()) |
|
|
|
} |
|
|
|
|
|
|
|
if err = deleteBeans(sess, |
|
|
@@ -1628,7 +1628,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error { |
|
|
|
} |
|
|
|
attachmentPaths := make([]string, 0, len(attachments)) |
|
|
|
for j := range attachments { |
|
|
|
attachmentPaths = append(attachmentPaths, attachments[j].UUID) |
|
|
|
attachmentPaths = append(attachmentPaths, attachments[j].RelativePath()) |
|
|
|
} |
|
|
|
|
|
|
|
if _, err = sess.In("issue_id", deleteCond). |
|
|
|