db: fixed not working sets update on server's start

This commit is contained in:
Oleg Agafonov 2023-05-09 08:58:32 +04:00
parent 67507fed67
commit 7d9d037416

View file

@ -45,7 +45,7 @@ public final class CardScanner {
|| expansionInfo.boosters != set.hasBoosters()
|| expansionInfo.basicLands != set.hasBasicLands()) {
// need update
setsToUpdate.add(expansionInfo);
setsToUpdate.add(new ExpansionInfo(set));
}
}
ExpansionRepository.instance.saveSets(setsToAdd, setsToUpdate, ExpansionRepository.instance.getContentVersionConstant());