Skip to content

Commit

Permalink
fixup! feat: automation service
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Jan 12, 2025
1 parent a40f4f4 commit 8f6dbec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/server/src/api-data/automation/automation.dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
AutomationSettings,
NormalisedAutomationBlueprint,
} from 'ontime-types';
import { deleteAtIndex, generateId } from 'ontime-utils';
import { deepmerge, deleteAtIndex, generateId } from 'ontime-utils';

import { getDataProvider } from '../../classes/data-provider/DataProvider.js';

Expand Down Expand Up @@ -145,7 +145,7 @@ export function deleteBlueprint(id: string): void {
*/
async function saveChanges(patch: Partial<AutomationSettings>) {
const automation = getDataProvider().getAutomation();
await getDataProvider().setAutomation({ ...automation, ...patch });
await getDataProvider().setAutomation(deepmerge(automation, patch));
}

/**
Expand Down

0 comments on commit 8f6dbec

Please sign in to comment.