forked from DebaucheryLibrarian/traxxx
Abstracted fragments and curation. Using GraphQL for tags.
This commit is contained in:
@@ -143,8 +143,7 @@ async function scrapeReleases() {
|
||||
});
|
||||
|
||||
if (argv.save) {
|
||||
const { movies } = await storeReleases(scrapedNetworks.flat(2));
|
||||
console.log(movies);
|
||||
await storeReleases(scrapedNetworks.flat(2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
|
||||
resolvers: {
|
||||
Actor: {
|
||||
age(parent, _args, _context, _info) {
|
||||
console.log(parent);
|
||||
|
||||
if (!parent.birthdate) return null;
|
||||
|
||||
return moment().diff(parent.birthdate, 'years');
|
||||
|
||||
Reference in New Issue
Block a user