fixed lint errors

This commit is contained in:
Kapil Jain 2019-10-14 15:17:49 -04:00
parent 0da37d6af8
commit f73ff995e1
3 changed files with 13210 additions and 4 deletions

13206
backend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@ module.exports = {
target: 'User',
direction: 'out',
properties: {
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() }
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
},
},
followedBy: {
@ -38,7 +38,7 @@ module.exports = {
target: 'User',
direction: 'in',
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' },
@ -104,7 +104,7 @@ module.exports = {
target: 'Post',
direction: 'out',
properties: {
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() }
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
},
},
isIn: {

View File

@ -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{createdAt:datetime()}]->(node)
MERGE (user)-[relation:SHOUTED{createdAt:toString(datetime())}]->(node)
RETURN COUNT(relation) > 0 as isShouted`,
{
id,