forked from DebaucheryLibrarian/traxxx
Added Black for Wife to JayRock. Switched parameters field to JSON type.
This commit is contained in:
@@ -11,13 +11,7 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
|
||||
resolvers: {
|
||||
Site: {
|
||||
independent(parent, _args, _context, _info) {
|
||||
if (!parent.parameters) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const parameters = JSON.parse(parent.parameters);
|
||||
|
||||
return !!parameters.independent;
|
||||
return !!parent.parameters?.independent;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user