Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix: reference found can already be dict (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnsarwar authored Jan 20, 2021
1 parent 7e3cc65 commit 470417e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud/fb_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def _reference_getter(data, context):
_path = full_path.split('/refs/')[1]
res = rtdb.reference(_path).get()
if res:
if isinstance(res, dict):
return res
return res.to_dict()
return None

Expand Down

0 comments on commit 470417e

Please sign in to comment.