mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -05:00
Fixing for publications
This commit is contained in:
parent
1a0b0f0bc1
commit
4ec195a6b2
1 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,7 @@ import createGraph from '../../query/lib/createGraph.js';
|
|||
import recursiveCompose from '../../query/lib/recursiveCompose.js';
|
||||
import prepareForProcess from '../../query/lib/prepareForProcess.js';
|
||||
import deepClone from 'lodash.clonedeep';
|
||||
import intersectDeep from '../../query/lib/intersectDeep';
|
||||
import genCountEndpoint from '../../query/counts/genEndpoint.server';
|
||||
import {check} from 'meteor/check';
|
||||
|
||||
|
@ -152,7 +153,11 @@ _.extend(NamedQuery.prototype, {
|
|||
self._callFirewall(this, this.userId, params);
|
||||
|
||||
let body = deepClone(self.body);
|
||||
self.doEmbodimentIfItApplies(body)
|
||||
if (params.$body) {
|
||||
body = intersectDeep(body, params.$body);
|
||||
}
|
||||
|
||||
self.doEmbodimentIfItApplies(body);
|
||||
body = prepareForProcess(body, params);
|
||||
|
||||
const rootNode = createGraph(self.collection, body);
|
||||
|
|
Loading…
Add table
Reference in a new issue