Fix wiki vs. JSONB.

This commit is contained in:
Cory McWilliams 2024-04-05 00:11:17 +01:00
parent 9cb872eec2
commit 6ae61d5b81
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "📝",
"previous": "&DnfuAUGzzalSh9NgZXnzDc9Ru5aM0omfRJ4h27jYw4k=.sha256"
"previous": "&hTgvoLzZ+6dlqYL7zRDAa91TzptTquAY8MaZ7Gn36Cc=.sha256"
}

View File

@ -96,7 +96,7 @@ export async function collection(
let rows = [];
await ssb.sqlAsync(
`
SELECT messages.id, author, content, timestamp
SELECT messages.id, author, json(content) AS content, timestamp
FROM messages
JOIN json_each(?1) AS id ON messages.author = id.value
WHERE