Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jul 27, 2023
1 parent b981ea1 commit 45237ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/lib/core-server/src/presets/common-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ export const experimental_serverChannel = async (channel: Channel, options: Opti
async ({ disableWhatsNewNotifications }: { disableWhatsNewNotifications: boolean }) => {
const isTelemetryEnabled = coreOptions.disableTelemetry !== true;
try {
const main = await readConfig(findConfigFile('main', options.configDir));
const fileName = findConfigFile('main', options.configDir);
const main = await readConfig(fileName);
main.setFieldValue(['core', 'disableWhatsNewNotifications'], disableWhatsNewNotifications);
await fs.writeFile(main.fileName, printConfig(main).code);

await fs.writeFile(fileName, printConfig(main).code);
if (isTelemetryEnabled) {
await telemetry('core-config', { disableWhatsNewNotifications });
}
Expand Down

0 comments on commit 45237ca

Please sign in to comment.