Fixing error
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Fabian Stamm 2020-03-24 15:18:13 +01:00
parent 1434036b42
commit 2a62c3d3ac
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ export abstract class Query {
oldKey = undefined;
};
const addSubscriber = () => {
const addSubscriber = (collection: string) => {
let key = Database.getKey(collection, document);
if (oldKey !== key) {
if (oldKey !== undefined) removeSubscriber();
@ -225,7 +225,7 @@ export abstract class Query {
};
if (collection) {
addSubscriber();
addSubscriber(collection);
}
return {