Skip to content

Commit

Permalink
Merge pull request #121 from GSM-MSG/119-feat/data-init-count
Browse files Browse the repository at this point in the history
119 feat/data init count
  • Loading branch information
esperar authored Nov 10, 2023
2 parents b6d0e56 + c8e317d commit 9d5a1e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ class DataInitializer(
@EventListener(ApplicationReadyEvent::class)
@Transactional
fun initData() {
if(schoolRepository.existsOne(1)) {
if(!schoolRepository.existsOne(1)) {
log.info("=== RUN Init School Data ===")
initSchool()
}

if(clubRepository.existsOne(1)) {
if(!clubRepository.existsOne(1)) {
log.info("=== RUN Init Club Data ===")
initClub()
}
Expand Down

0 comments on commit 9d5a1e1

Please sign in to comment.