This commit is contained in:
Andras Bacsai 2022-10-24 21:54:33 +02:00
parent 88f1c36929
commit f9dfbd5800
2 changed files with 8 additions and 9 deletions

View File

@ -484,7 +484,6 @@ export async function saveService(request: FastifyRequest<SaveService>, reply: F
let { name, fqdn, exposePort, type, serviceSetting } = request.body;
if (fqdn) fqdn = fqdn.toLowerCase();
if (exposePort) exposePort = Number(exposePort);
console.log({ serviceSetting })
type = fixType(type)
// const update = saveUpdateableFields(type, request.body[type])
const data = {

View File

@ -53,14 +53,14 @@ export async function saveForm(formData: any, service: any) {
}
return setting;
});
if (!settings.includes(key) && !baseCoolifySetting.includes(key)) {
service.serviceSetting.push({
id: service.id,
name: key,
value: value,
isNew: true
});
}
// if (!settings.includes(key) && !baseCoolifySetting.includes(key)) {
// service.serviceSetting.push({
// id: service.id,
// name: key,
// value: value,
// isNew: true
// });
// }
}
await post(`/services/${service.id}`, { ...service });
const { service: reloadedService } = await get(`/services/${service.id}`);