From 47016a2d5cf43cb0309677cf9ff2e48b1b208405 Mon Sep 17 00:00:00 2001 From: Valknar XXX Date: Tue, 28 Oct 2025 13:44:35 +0100 Subject: [PATCH] fix: parse tags JSON string in recording creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Handle tags field when sent as JSON string by parsing it into an array before insertion. Fixes "malformed array literal" error when saving recordings with tags. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- packages/bundle/src/endpoint/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bundle/src/endpoint/index.ts b/packages/bundle/src/endpoint/index.ts index 3178309..d5014ae 100644 --- a/packages/bundle/src/endpoint/index.ts +++ b/packages/bundle/src/endpoint/index.ts @@ -344,7 +344,7 @@ export default { duration, events, device_info, - tags: tags || [], + tags: Array.isArray(tags) ? tags : (typeof tags === 'string' ? (tags.startsWith('[') ? JSON.parse(tags) : []) : []), linked_video: linked_video || null, status: status || "draft", public: false,