mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-25 11:25:05 +02:00
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:
2
.github/workflows/pocketbase-bot.yml
generated
vendored
2
.github/workflows/pocketbase-bot.yml
generated
vendored
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user