PocketBase Bot: fix double-stringify on notes_json patch

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.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-20 08:53:34 +02:00
parent b34e773cbb
commit d95073f505

View File

@@ -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');