2 Commits

Author SHA1 Message Date
68295c148d Version Bump
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/tag Build is passing
2020-03-24 15:20:19 +01:00
2a62c3d3ac Fixing error
All checks were successful
continuous-integration/drone/tag Build is passing
2020-03-24 15:18:13 +01:00
2 changed files with 47 additions and 47 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@hibas123/realtimedb", "name": "@hibas123/realtimedb",
"version": "2.0.0-beta.9", "version": "2.0.0-beta.18",
"description": "", "description": "",
"main": "lib/index.js", "main": "lib/index.js",
"private": true, "private": true,

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 {