new exception

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-02-21 11:12:24 +01:00
committed by Julius Härtl
parent 7750621917
commit 1e3ff41cb2
4 changed files with 48 additions and 13 deletions

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) {