Fix uploading attachments
This commit is contained in:
parent
747a912475
commit
86aebc48a0
1 changed files with 3 additions and 3 deletions
|
@ -46,20 +46,20 @@ export default class AbstractService {
|
||||||
case 'post':
|
case 'post':
|
||||||
if (this.useUpdateInterceptor()) {
|
if (this.useUpdateInterceptor()) {
|
||||||
config.data = self.beforeUpdate(config.data)
|
config.data = self.beforeUpdate(config.data)
|
||||||
|
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
||||||
}
|
}
|
||||||
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
|
||||||
break
|
break
|
||||||
case 'put':
|
case 'put':
|
||||||
if (this.useCreateInterceptor()) {
|
if (this.useCreateInterceptor()) {
|
||||||
config.data = self.beforeCreate(config.data)
|
config.data = self.beforeCreate(config.data)
|
||||||
|
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
||||||
}
|
}
|
||||||
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
|
||||||
break
|
break
|
||||||
case 'delete':
|
case 'delete':
|
||||||
if (this.useDeleteInterceptor()) {
|
if (this.useDeleteInterceptor()) {
|
||||||
config.data = self.beforeDelete(config.data)
|
config.data = self.beforeDelete(config.data)
|
||||||
|
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
||||||
}
|
}
|
||||||
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Reference in a new issue