mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
profile query fix to return the correct user avatar not the first found
This commit is contained in:
parent
ae0b7f7629
commit
c24a9a56c2
@ -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:User)-[:AVATAR_IMAGE]->(image:Image)
|
||||
RETURN image.url
|
||||
""")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user