mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
updated shout resolver to add createdAt
This commit is contained in:
parent
8a36ec6c29
commit
0da37d6af8
@ -7,7 +7,7 @@ export default {
|
||||
const transactionRes = await session.run(
|
||||
`MATCH (node {id: $id})<-[:WROTE]-(userWritten:User), (user:User {id: $userId})
|
||||
WHERE $type IN labels(node) AND NOT userWritten.id = $userId
|
||||
MERGE (user)-[relation:SHOUTED]->(node)
|
||||
MERGE (user)-[relation:SHOUTED{createdAt:datetime()}]->(node)
|
||||
RETURN COUNT(relation) > 0 as isShouted`,
|
||||
{
|
||||
id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user