File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { sha1 } from 'object-hash'
1919@Injectable ( )
2020export class UniversalRtDbService implements IUniversalRtdbService {
2121 // tslint:disable-next-line:readonly-keyword
22- readFromCache = true
22+ private readFromCache = true
2323
2424 constructor (
2525 public angularFireDatabase : AngularFireDatabase ,
@@ -40,6 +40,9 @@ export class UniversalRtDbService implements IUniversalRtdbService {
4040 this . readFromCache = false
4141 }
4242
43+ /*
44+ * Safely query a Firebase RTDB object on both server and client
45+ */
4346 universalObject < T > ( path : string ) : Observable < T | undefined > {
4447 const cached = this . ts . get < T | undefined > ( this . cacheKey ( path ) , undefined )
4548 const base = this . angularFireDatabase
@@ -58,6 +61,9 @@ export class UniversalRtDbService implements IUniversalRtdbService {
5861 )
5962 }
6063
64+ /*
65+ * Safely query a Firebase RTDB list on both server and client
66+ */
6167 universalList < T > (
6268 path : string ,
6369 queryFn ?: QueryFn
You can’t perform that action at this time.
0 commit comments