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':
|
||||
if (this.useUpdateInterceptor()) {
|
||||
config.data = self.beforeUpdate(config.data)
|
||||
}
|
||||
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
||||
}
|
||||
break
|
||||
case 'put':
|
||||
if (this.useCreateInterceptor()) {
|
||||
config.data = self.beforeCreate(config.data)
|
||||
}
|
||||
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
||||
}
|
||||
break
|
||||
case 'delete':
|
||||
if (this.useDeleteInterceptor()) {
|
||||
config.data = self.beforeDelete(config.data)
|
||||
}
|
||||
config.data = JSON.stringify(objectToSnakeCase(config.data))
|
||||
}
|
||||
break
|
||||
}
|
||||
return config
|
||||
|
|
Loading…
Reference in a new issue