Skip to content

Commit

Permalink
Merge pull request #408 from auntiebirdie/add-arrayvalue-from-firebas…
Browse files Browse the repository at this point in the history
…e-type

Add arrayValue conversion to from_firebase_type
  • Loading branch information
WolfgangSenff authored Jun 19, 2024
2 parents c7f33ad + 04916a0 commit 091aa11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/godot-firebase/Utilities.gd
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ static func from_firebase_type(value : Variant) -> Variant:

if value.has("mapValue"):
value = fields2dict(value.values()[0])
elif value.has("arrayValue"):
value = fields2array(value.values()[0])
elif value.has("timestampValue"):
value = Time.get_datetime_dict_from_datetime_string(value.values()[0], false)
else:
Expand Down

0 comments on commit 091aa11

Please sign in to comment.