[SIS-xxx] synchronizing the lookup for donations, so that simultaneous calls are not possible

This commit is contained in:
Sheldan
2023-12-01 22:49:34 +01:00
parent b345fa5502
commit 5852d4837e

View File

@@ -135,7 +135,7 @@ public class DonationService {
}
@Cacheable(value = "donation-cache")
public DonationsResponse getCachedDonationAmount(Long serverId) {
public synchronized DonationsResponse getCachedDonationAmount(Long serverId) {
return fetchCurrentDonationAmount(serverId);
}