From 4006d63232a55e3fa9c31eefe071ef9b39136f61 Mon Sep 17 00:00:00 2001 From: Kirill Dubovitskiy Date: Wed, 13 Aug 2025 01:18:50 -0700 Subject: [PATCH] refactor: rename update-machine-metadata to update-machine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Consistent naming with the update body type (t: 'update-machine') - Shorter and cleaner event name - Matches the pattern used elsewhere in the codebase 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- sources/app/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/app/api.ts b/sources/app/api.ts index bf335fb..a3ed823 100644 --- a/sources/app/api.ts +++ b/sources/app/api.ts @@ -1531,8 +1531,8 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }> } }); - // Update machine metadata through socket - socket.on('update-machine-metadata', async (data: { metadata: string }) => { + // Update machine through socket + socket.on('update-machine', async (data: { metadata: string }) => { if (connection.connectionType !== 'machine-scoped') { return; // Only machines can update their own metadata }