new exception

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-03-11 12:08:03 +01:00
committed by Julius Härtl
parent 7750621917
commit 1e3ff41cb2
4 changed files with 48 additions and 13 deletions
+6 -10
View File
@@ -38,16 +38,12 @@ export class AttachmentApi {
}
async createAttachment({ cardId, formData }) {
try {
const response = await axios({
method: 'POST',
url: this.url(`/cards/${cardId}/attachment`),
data: formData,
})
return response.data
} catch (e) {
throw e
}
const response = await axios({
method: 'POST',
url: this.url(`/cards/${cardId}/attachment`),
data: formData,
})
return response.data
}
async deleteAttachment(attachment) {