Skip to content

Commit 497e674

Browse files
committed
use modular instance
1 parent 2b68768 commit 497e674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/database/src/exp/Reference_impl.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,8 @@ export function update(ref: Reference, values: object): Promise<void> {
802802
* server is unreachable and there is nothing cached).
803803
*/
804804
export function get(query: Query): Promise<DataSnapshot> {
805-
const queryImpl = getModularInstance(query) as QueryImpl;
806-
return repoGetValue(query._repo, queryImpl).then(node => {
805+
query = getModularInstance(query) as QueryImpl;
806+
return repoGetValue(query._repo, query).then(node => {
807807
return new DataSnapshot(
808808
node,
809809
new ReferenceImpl(query._repo, query._path),

0 commit comments

Comments
 (0)