Fixing some bugs and changing subscribe behaviour

This commit is contained in:
Fabian
2019-10-01 18:24:26 +02:00
parent 405e589328
commit 518d46f410
4 changed files with 15 additions and 4 deletions

View File

@ -230,7 +230,7 @@ export default class Query {
if (type === change.type) {
Logging.debug("Path", this.path, change.path);
if (this.path.length === change.path.length - (type === ChangeTypes.PUSH ? 1 : 0)) {
if (this.path.length <= change.path.length - (type === ChangeTypes.PUSH ? 1 : 0)) {
let valid = true;
for (let i = 0; i < this.path.length; i++) {
if (this.path[i] !== change.path[i]) {