forked from DebaucheryLibrarian/traxxx
Added Fabulous Cash sites.
This commit is contained in:
@@ -21,6 +21,7 @@ async function pgSettings(req) {
|
||||
|
||||
// console.log(PgAggregatesPlugin);
|
||||
|
||||
/*
|
||||
const TagsAggregatePlugin = (builder) => {
|
||||
builder.hook('build', (build) => {
|
||||
const pgAggregateSpecs = [
|
||||
@@ -29,8 +30,8 @@ const TagsAggregatePlugin = (builder) => {
|
||||
humanLabel: 'tags',
|
||||
HumanLabel: 'Tags',
|
||||
sqlAggregateWrap: (sqlFrag) => {
|
||||
console.log('sql frag', sqlFrag);
|
||||
return build.pgSql.fragment`sum(${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);
|
||||
@@ -39,9 +40,12 @@ const TagsAggregatePlugin = (builder) => {
|
||||
},
|
||||
];
|
||||
|
||||
build.pgAggregateSpecs = pgAggregateSpecs; // eslint-disable-line no-param-reassign
|
||||
build.pgAggregateGroupBySpecs = pgAggregateSpecs; // eslint-disable-line no-param-reassign
|
||||
|
||||
return build;
|
||||
});
|
||||
};
|
||||
*/
|
||||
|
||||
module.exports = postgraphile(
|
||||
connectionString,
|
||||
@@ -69,7 +73,7 @@ module.exports = postgraphile(
|
||||
...SitePlugins,
|
||||
...ReleasePlugins,
|
||||
...MediaPlugins,
|
||||
TagsAggregatePlugin,
|
||||
// TagsAggregatePlugin,
|
||||
],
|
||||
pgSettings,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user