Merge pull request #6587 from Ocelot-Social-Community/fix-profile-query

fix(backend): profile query fix
This commit is contained in:
Ulf Gebhardt 2023-07-17 19:46:40 +02:00 committed by GitHub
commit a2e8401476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ type Room {
avatar: String @cypher(statement: """
MATCH (this)<-[:CHATS_IN]-(user:User)
WHERE NOT user.id = $cypherParams.currentUserId
OPTIONAL MATCH (:User)-[:AVATAR_IMAGE]->(image:Image)
OPTIONAL MATCH (user)-[:AVATAR_IMAGE]->(image:Image)
RETURN image.url
""")