fix query (no write access)

This commit is contained in:
Ulf Gebhardt 2025-12-10 22:44:00 +01:00
parent 8105c451fa
commit 28071bc537
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -475,7 +475,7 @@ export default {
})
// If MAX_PINNED_POSTS !== 1 -> Check if max is reached
} else {
const result = await context.database.write({
const result = await context.database.query({
query: `
MATCH (post:Post {id: $params.id})-[:IN]->(group:Group)
MATCH (:User)-[pinned:GROUP_PINNED]->(pinnedPosts:Post)-[:IN]->(:Group {id: group.id})