From d95073f505e1c4180727cdfef91c6c31f23f2dad Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 20 Apr 2026 08:53:34 +0200 Subject: [PATCH] PocketBase Bot: fix double-stringify on notes_json patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit notes_json was sent as JSON.stringify(arr) inside JSON.stringify(), causing PocketBase to receive a string instead of a JSON array. patchMethods already does it correctly — align patchNotes. --- .github/workflows/pocketbase-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pocketbase-bot.yml b/.github/workflows/pocketbase-bot.yml index 0570541c1..2d5ce52c8 100644 --- a/.github/workflows/pocketbase-bot.yml +++ b/.github/workflows/pocketbase-bot.yml @@ -388,7 +388,7 @@ jobs: const res = await request(recordsUrl + '/' + record.id, { method: 'PATCH', headers: { 'Authorization': token, 'Content-Type': 'application/json' }, - body: JSON.stringify({ notes_json: JSON.stringify(arr) }) + body: JSON.stringify({ notes_json: arr }) }); if (!res.ok) { await addReaction('-1');