Implement UUID-based tracking for OBS groups #4

Merged
deco merged 3 commits from obs-uuid-tracking into main 2025-07-20 22:55:32 +03:00
4 changed files with 4 additions and 3 deletions
Showing only changes of commit 859e19a1ed - Show all commits

View file

@ -21,7 +21,7 @@ export async function PUT(
// Build dynamic query based on what fields are being updated // Build dynamic query based on what fields are being updated
const updates: string[] = []; const updates: string[] = [];
const values: any[] = []; const values: (string | number | null)[] = [];
if (team_name) { if (team_name) {
updates.push('team_name = ?'); updates.push('team_name = ?');

View file

@ -140,7 +140,7 @@ export async function parseRequestBody<T>(
} }
return { success: true, data: body as T }; return { success: true, data: body as T };
} catch (_error) { } catch {
return { return {
success: false, success: false,
response: createErrorResponse( response: createErrorResponse(

View file

@ -130,7 +130,7 @@ async function createGroupIfNotExists(groupName) {
if (!existingScene) { if (!existingScene) {
console.log(`Creating group "${groupName}"`); console.log(`Creating group "${groupName}"`);
const createResult = await obsClient.call('CreateScene', { sceneName: groupName }); await obsClient.call('CreateScene', { sceneName: groupName });
// Get the scene UUID after creation // Get the scene UUID after creation
const { scenes: updatedScenes } = await obsClient.call('GetSceneList'); const { scenes: updatedScenes } = await obsClient.call('GetSceneList');

View file

@ -193,5 +193,6 @@ export function useSmartPolling(
intervalRef.current = null; intervalRef.current = null;
} }
}; };
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [interval, isVisible, ...dependencies]); }, [interval, isVisible, ...dependencies]);
} }