forked from DebaucheryLibrarian/traxxx
Updated Hussie Pass scraper for new site design. Added cock size to profiles.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
const { makeExtendSchemaPlugin, gql } = require('graphile-utils');
|
||||
const moment = require('moment');
|
||||
const { cmToFeetInches, kgToLbs } = require('../../utils/convert');
|
||||
const { cmToFeetInches, cmToInches, kgToLbs } = require('../../utils/convert');
|
||||
|
||||
const schemaExtender = makeExtendSchemaPlugin(_build => ({
|
||||
typeDefs: gql`
|
||||
@@ -16,6 +16,8 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
|
||||
ageAtDeath: Int @requires(columns: ["dateOfBirth", "dateOfDeath"])
|
||||
height(units:Units): String @requires(columns: ["height"])
|
||||
weight(units:Units): String @requires(columns: ["weight"])
|
||||
penisLength(units:Units): String @requires(columns: ["penis_length"])
|
||||
penisGirth(units:Units): String @requires(columns: ["penis_girth"])
|
||||
}
|
||||
`,
|
||||
resolvers: {
|
||||
@@ -47,6 +49,20 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
|
||||
? kgToLbs(parent.weight).toString()
|
||||
: parent.weight.toString();
|
||||
},
|
||||
penisLength(parent, args, _context, _info) {
|
||||
if (!parent.penisLength) return null;
|
||||
|
||||
return args.units === 'IMPERIAL'
|
||||
? (Math.round(cmToInches(parent.penisLength) * 4) / 4).toString() // round to nearest quarter inch
|
||||
: parent.penisLength.toString();
|
||||
},
|
||||
penisGirth(parent, args, _context, _info) {
|
||||
if (!parent.penisGirth) return null;
|
||||
|
||||
return args.units === 'IMPERIAL'
|
||||
? (Math.round(cmToInches(parent.penisGirth) * 4) / 4).toString() // round to nearest quarter inch
|
||||
: parent.penisGirth.toString();
|
||||
},
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user