Created
June 21, 2023 08:39
-
-
Save ZZANZU/1b96120ebe45cf2d4b16a53d40327d62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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