adds insertFile to the new ProfilUpdate FhcAPIController and starts a transaction when deleting the foreign key from the profil update and deleting the old file

This commit is contained in:
SimonGschnell
2024-07-22 11:24:47 +02:00
parent 0cc6222175
commit a0871657ca
5 changed files with 139 additions and 10 deletions
+5 -6
View File
@@ -45,14 +45,13 @@ export default {
//TODO post request
//? new requests
insertFile: function (dms, replace = null) {
const url =
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/Cis/ProfilUpdate/insertFile/${replace}`;
return axios.post(url, dms, {
headers: { "Content-Type": "multipart/form-data" },
});
`/api/frontend/v1/ProfilUpdate/insertFile/${replace}`,
dms);
},
getProfilRequestFiles: function (requestID) {