Added transfer tool, WIP. Added Savage Gangbang to Kink.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable arrow-body-style */
|
||||
const config = require('config');
|
||||
|
||||
const { postgraphile } = require('postgraphile');
|
||||
@@ -7,7 +8,6 @@ const { postgraphile } = require('postgraphile');
|
||||
const PgConnectionFilterPlugin = require('postgraphile-plugin-connection-filter');
|
||||
const PgSimplifyInflectorPlugin = require('@graphile-contrib/pg-simplify-inflector');
|
||||
const PgOrderByRelatedPlugin = require('@graphile-contrib/pg-order-by-related');
|
||||
const PgAggregatesPlugin = require('@graphile/pg-aggregates').default;
|
||||
|
||||
const { ActorPlugins, SitePlugins, ReleasePlugins, MediaPlugins } = require('./plugins/plugins');
|
||||
|
||||
@@ -19,34 +19,6 @@ async function pgSettings(req) {
|
||||
};
|
||||
}
|
||||
|
||||
// console.log(PgAggregatesPlugin);
|
||||
|
||||
/*
|
||||
const TagsAggregatePlugin = (builder) => {
|
||||
builder.hook('build', (build) => {
|
||||
const pgAggregateSpecs = [
|
||||
{
|
||||
id: 'tags',
|
||||
humanLabel: 'tags',
|
||||
HumanLabel: 'Tags',
|
||||
sqlAggregateWrap: (sqlFrag) => {
|
||||
// console.log('sql frag', sqlFrag);
|
||||
return build.pgSql.fragment`select tag_id from tags where release_id = ${sqlFrag}`;
|
||||
},
|
||||
isSuitableType: (pgType) => {
|
||||
// console.log('pg type', pgType);
|
||||
return pgType.category === 'N';
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
build.pgAggregateGroupBySpecs = pgAggregateSpecs; // eslint-disable-line no-param-reassign
|
||||
|
||||
return build;
|
||||
});
|
||||
};
|
||||
*/
|
||||
|
||||
module.exports = postgraphile(
|
||||
connectionString,
|
||||
'public',
|
||||
@@ -67,13 +39,11 @@ module.exports = postgraphile(
|
||||
appendPlugins: [
|
||||
PgSimplifyInflectorPlugin,
|
||||
PgConnectionFilterPlugin,
|
||||
PgAggregatesPlugin,
|
||||
PgOrderByRelatedPlugin,
|
||||
...ActorPlugins,
|
||||
...SitePlugins,
|
||||
...ReleasePlugins,
|
||||
...MediaPlugins,
|
||||
// TagsAggregatePlugin,
|
||||
],
|
||||
pgSettings,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user