Compare commits
2 Commits
v2.0.0-bet
...
v2.0.0-bet
Author | SHA1 | Date | |
---|---|---|---|
68295c148d | |||
2a62c3d3ac |
@ -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,
|
||||||
|
@ -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 {
|
||||||
|
Reference in New Issue
Block a user