diff --git a/backend/src/schema/types/type/Room.gql b/backend/src/schema/types/type/Room.gql index 744d63e6b..8b9982dda 100644 --- a/backend/src/schema/types/type/Room.gql +++ b/backend/src/schema/types/type/Room.gql @@ -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:User)-[:AVATAR_IMAGE]->(image:Image) + OPTIONAL MATCH (user)-[:AVATAR_IMAGE]->(image:Image) RETURN image.url """)