fix
This commit is contained in:
parent
88f1c36929
commit
f9dfbd5800
@ -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 = {
|
||||
|
@ -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}`);
|
||||
|
Loading…
Reference in New Issue
Block a user