Skip to content

Commit

Permalink
Sync ข้อมูลก่อน วิเคราห์โรค ป้องกันการอัพเดทบ้านทับ
Browse files Browse the repository at this point in the history
  • Loading branch information
lionants02 committed Sep 22, 2020
1 parent 85b66d6 commit 39487e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airsync/src/main/kotlin/ffc/airsync/InitSync.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import ffc.airsync.ui.AirSyncGUI
import ffc.airsync.ui.createProgress
import ffc.airsync.update.FFcUpdate
import ffc.airsync.utils.getLogger
import ffc.airsync.utils.syncCloud
import ffc.entity.Person
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
Expand Down Expand Up @@ -109,6 +110,8 @@ class InitSync : ProgressList {
healthCare.initSync {
progressHealthCare = it
}
logger.info("Sync cloud to jhcisdb")
syncCloud.sync(Main.instant.dao)
logger.info("สำรวจความเจ็บป่วย (7/7)")
message = "วิเคราะห์ความเจ็บป่วย"
SyncAnalyzer(healthCare).sync()
Expand Down

0 comments on commit 39487e1

Please sign in to comment.