mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fixed lint errors
This commit is contained in:
parent
0da37d6af8
commit
f73ff995e1
13206
backend/package-lock.json
generated
Normal file
13206
backend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -29,7 +29,7 @@ module.exports = {
|
|||||||
target: 'User',
|
target: 'User',
|
||||||
direction: 'out',
|
direction: 'out',
|
||||||
properties: {
|
properties: {
|
||||||
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() }
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
followedBy: {
|
followedBy: {
|
||||||
@ -38,7 +38,7 @@ module.exports = {
|
|||||||
target: 'User',
|
target: 'User',
|
||||||
direction: 'in',
|
direction: 'in',
|
||||||
properties: {
|
properties: {
|
||||||
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() }
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
friends: { type: 'relationship', relationship: 'FRIENDS', target: 'User', direction: 'both' },
|
friends: { type: 'relationship', relationship: 'FRIENDS', target: 'User', direction: 'both' },
|
||||||
@ -104,7 +104,7 @@ module.exports = {
|
|||||||
target: 'Post',
|
target: 'Post',
|
||||||
direction: 'out',
|
direction: 'out',
|
||||||
properties: {
|
properties: {
|
||||||
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() }
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
isIn: {
|
isIn: {
|
||||||
|
|||||||
@ -7,7 +7,7 @@ export default {
|
|||||||
const transactionRes = await session.run(
|
const transactionRes = await session.run(
|
||||||
`MATCH (node {id: $id})<-[:WROTE]-(userWritten:User), (user:User {id: $userId})
|
`MATCH (node {id: $id})<-[:WROTE]-(userWritten:User), (user:User {id: $userId})
|
||||||
WHERE $type IN labels(node) AND NOT userWritten.id = $userId
|
WHERE $type IN labels(node) AND NOT userWritten.id = $userId
|
||||||
MERGE (user)-[relation:SHOUTED{createdAt:datetime()}]->(node)
|
MERGE (user)-[relation:SHOUTED{createdAt:toString(datetime())}]->(node)
|
||||||
RETURN COUNT(relation) > 0 as isShouted`,
|
RETURN COUNT(relation) > 0 as isShouted`,
|
||||||
{
|
{
|
||||||
id,
|
id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user