|
|
|
@ -190,7 +190,7 @@ import LeStorage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func userFilteredPurchases() -> [StoreKit.Transaction] { |
|
|
|
func userFilteredPurchases() -> [StoreKit.Transaction] { |
|
|
|
Logger.log("self.purchasedTransactions = \(self.purchasedTransactions.count)") |
|
|
|
// Logger.log("self.purchasedTransactions = \(self.purchasedTransactions.count)") |
|
|
|
guard let userId = StoreCenter.main.userId, let currentUserUUID: UUID = UUID(uuidString: userId) else { |
|
|
|
guard let userId = StoreCenter.main.userId, let currentUserUUID: UUID = UUID(uuidString: userId) else { |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
} |
|
|
|
} |
|
|
|
@ -279,7 +279,7 @@ import LeStorage |
|
|
|
let tournamentCreditCount = self._purchasedTournamentCount() |
|
|
|
let tournamentCreditCount = self._purchasedTournamentCount() |
|
|
|
// let notDeletedTournamentCount = DataStore.shared.tournaments.filter { $0.isDeleted == false }.count |
|
|
|
// let notDeletedTournamentCount = DataStore.shared.tournaments.filter { $0.isDeleted == false }.count |
|
|
|
|
|
|
|
|
|
|
|
Logger.log("unitlyPayed = \(unitlyPayed), purchased = \(tournamentCreditCount) ") |
|
|
|
// Logger.log("unitlyPayed = \(unitlyPayed), purchased = \(tournamentCreditCount) ") |
|
|
|
return tournamentCreditCount - unitlyPayed |
|
|
|
return tournamentCreditCount - unitlyPayed |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|