mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
- lint fixes
This commit is contained in:
parent
cd42824502
commit
c420e18543
@ -37,17 +37,17 @@ const isMySocialMedia = rule({
|
||||
cache: 'no_cache',
|
||||
})(async (_, args, { user }) => {
|
||||
// We need a User
|
||||
if (!user){
|
||||
if (!user) {
|
||||
return false
|
||||
}
|
||||
let socialMedia = await neode.find('SocialMedia', args.id)
|
||||
// Did we find a social media node?
|
||||
if(!socialMedia){
|
||||
if (!socialMedia) {
|
||||
return false
|
||||
}
|
||||
socialMedia = await socialMedia.toJson() // whats this for?
|
||||
|
||||
//Is it my social media entry?
|
||||
// Is it my social media entry?
|
||||
return socialMedia.ownedBy.node.id === user.id
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user