Compare commits
2 Commits
v2.0.0-bet
...
v2.0.0-bet
Author | SHA1 | Date | |
---|---|---|---|
68295c148d | |||
2a62c3d3ac |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/realtimedb",
|
||||
"version": "2.0.0-beta.9",
|
||||
"version": "2.0.0-beta.18",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"private": true,
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user