Skip to content

Instantly share code, notes, and snippets.

@ZZANZU
Created June 21, 2023 08:39
Show Gist options
  • Save ZZANZU/1b96120ebe45cf2d4b16a53d40327d62 to your computer and use it in GitHub Desktop.
Save ZZANZU/1b96120ebe45cf2d4b16a53d40327d62 to your computer and use it in GitHub Desktop.
override suspend fun getRegionList(): ArrayList<Region> {
// ...
val result = regionRef.get().await()
val documents = result.documents
for (document in documents) { // document에는 정상적으로 데이터가 담겨있는 것을 확인함.
val region = document.toObject<Region>() // 🔥 toObject()가 정상작동하지 않아서 region에 빈 데이터가 들어감.
if (region != null) regionInfo.add(region)
}
return regionInfo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment