Skip to content

Commit 091aa11

Browse files
Merge pull request #408 from auntiebirdie/add-arrayvalue-from-firebase-type
Add arrayValue conversion to from_firebase_type
2 parents c7f33ad + 04916a0 commit 091aa11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addons/godot-firebase/Utilities.gd

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ static func from_firebase_type(value : Variant) -> Variant:
5858

5959
if value.has("mapValue"):
6060
value = fields2dict(value.values()[0])
61+
elif value.has("arrayValue"):
62+
value = fields2array(value.values()[0])
6163
elif value.has("timestampValue"):
6264
value = Time.get_datetime_dict_from_datetime_string(value.values()[0], false)
6365
else:

0 commit comments

Comments
 (0)