Преглед изворни кода

EAGLESIX-2693 updated addDependencies to use new deps

Austin Meagher пре 11 година
родитељ
комит
6e4f8d9f90
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lib/pipeline/expressions/FieldPathExpression.js

+ 2 - 2
lib/pipeline/expressions/FieldPathExpression.js

@@ -181,9 +181,9 @@ proto.optimize = function(){
 proto.addDependencies = function addDependencies(deps){
 proto.addDependencies = function addDependencies(deps){
 	if(this.path.fields[0] === "CURRENT" || this.path.fields[0] === "ROOT") {
 	if(this.path.fields[0] === "CURRENT" || this.path.fields[0] === "ROOT") {
 		if(this.path.fields.length === 1) {
 		if(this.path.fields.length === 1) {
-			deps[""] = 1;
+			deps.needWholeDocument = true;
 		} else {
 		} else {
-			deps[this.path.tail().getPath(false)] = 1;
+			deps.fields[this.path.tail().getPath(false)] = 1;
 		}
 		}
 	}
 	}
 };
 };