Added Black for Wife to JayRock. Switched parameters field to JSON type.

This commit is contained in:
2020-02-09 19:41:39 +01:00
parent f7f4da24ec
commit 0f513266a0
18 changed files with 173 additions and 58 deletions

View File

@@ -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;
},
},
},