Fixed authors initializaion on SQLite

refs https://github.com/TryGhost/Toolbox/issues/230

 - The plain ["id"] syntax doesn't work for SQLite - has to be an explicit property to catch up.
This commit is contained in:
Naz 2022-04-27 16:02:13 +08:00 committed by naz
parent 9821c3785e
commit a3005dc328

View File

@ -605,7 +605,9 @@
"custom_excerpt": "Work with all your favorite apps and tools or create your own custom integrations using the Ghost API.",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a72",
@ -620,7 +622,9 @@
"custom_excerpt": "A guide to collaborating with other staff users to publish, and some resources to help you with the next steps of growing your business",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a73",
@ -634,7 +638,9 @@
"visibility": "paid",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a74",
@ -649,7 +655,9 @@
"custom_excerpt": "How Ghost allows you to turn anonymous readers into an audience of active subscribers, so you know what's working and what isn't.",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a75",
@ -664,7 +672,9 @@
"custom_excerpt": "A full overview of all the features built into the Ghost editor, including powerful workflow automations to speed up your creative process.",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a76",
@ -679,7 +689,9 @@
"custom_excerpt": "How to tweak a few settings in Ghost to transform your site from a generic template to a custom brand with style and personality.",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a77",
@ -694,7 +706,9 @@
"custom_excerpt": "We've crammed the most important information to help you get started with Ghost into this one post. It's your cheat-sheet to get started, and your shortcut to advanced features.",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a78",
@ -709,7 +723,9 @@
"custom_excerpt": null,
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a79",
@ -723,7 +739,9 @@
"visibility": "public",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a7a",
@ -737,7 +755,9 @@
"visibility": "public",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
},
{
"id": "6194d3ce51e2700162531a7b",
@ -751,7 +771,9 @@
"visibility": "public",
"created_by": "5951f5fca366002ebd5dbef7",
"published_by": "5951f5fca366002ebd5dbef7",
"authors": ["5951f5fca366002ebd5dbef7"]
"authors": [{
"id": "5951f5fca366002ebd5dbef7"
}]
}
]
},