mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +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