Skip to content

Commit

Permalink
do the db sync first and then remove expired events, otherwise we won…
Browse files Browse the repository at this point in the history
…'t get the expire banner
  • Loading branch information
ktiniatros committed Jun 30, 2022
1 parent 4bf9a11 commit 3c60580
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ class DashboardViewModelImpl(
val allGreenCards = greenCardUtil.getAllGreenCards()
val allEventGroupEntities = holderDatabase.eventGroupDao().getAll()

removeExpiredEventsUseCase.execute(
events = allEventGroupEntities
)

removeExpiredGreenCardsUseCase.execute(
allGreenCards = allGreenCards
)
Expand Down Expand Up @@ -140,6 +136,10 @@ class DashboardViewModelImpl(
isLoadingNewCredentials = false
)
}

removeExpiredEventsUseCase.execute(
events = allEventGroupEntities
)
}
}

Expand Down

0 comments on commit 3c60580

Please sign in to comment.