chore: changing parent_path to parentPath

This commit is contained in:
Mose Müller
2023-08-10 14:18:37 +02:00
parent 04e0e9e8b2
commit 8205e4d463
11 changed files with 66 additions and 66 deletions

View File

@@ -11,13 +11,13 @@ export const socket = io(URL, { path: '/ws/socket.io', transports: ['websocket']
export const emit_update = (
name: string,
parent_path: string,
parentPath: string,
value: unknown,
callback?: (ack: unknown) => void
) => {
if (callback) {
socket.emit('frontend_update', { name, parent_path, value }, callback);
socket.emit('frontend_update', { name, parent_path: parentPath, value }, callback);
} else {
socket.emit('frontend_update', { name, parent_path, value });
socket.emit('frontend_update', { name, parent_path: parentPath, value });
}
};