Fixing error
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
Fabian Stamm 2020-03-24 15:18:13 +01:00
parent 1434036b42
commit 2a62c3d3ac

View File

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