Do not fail is we don't have a servicesConfig yet
This commit is contained in:
@@ -427,7 +427,7 @@ async function configureService(id, data, auditSource) {
|
||||
const servicesConfig = await getConfig();
|
||||
needsRebuild = servicesConfig[name]?.recoveryMode != data.recoveryMode; // intentional != since 'recoveryMode' may or may not be there
|
||||
|
||||
if (name === 'postgresql' && data.useVectorRsExtension !== servicesConfig[name].useVectorRsExtension) needsRebuild = true;
|
||||
if (name === 'postgresql' && (!servicesConfig[name] || data.useVectorRsExtension !== servicesConfig[name].useVectorRsExtension)) needsRebuild = true;
|
||||
|
||||
servicesConfig[name] = data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user