Add comment regarding when a one-time donation record might not be found

This commit is contained in:
Chris Eager authored and Chris Eager committed 2026-09-18 17:38:13 -04:00
1 parent 755a87c74d
commit d400e700ac
1 file changed
+2
@@ -51,6 +51,8 @@ public class OneTimeDonationsManager {
final GetItemResponse getItemResponse = dynamoDbClient.getItem(getItemRequest);
if (!getItemResponse.hasItem()) {
// This can happen if the upstream call races the asynchronous webhook that notifies of payment success,
// and usually the `paidAt` will be within a few seconds of the fallback
Metrics.counter(ONETIME_DONATION_NOT_FOUND_COUNTER_NAME, Tags.of("processor", paymentProvider.name())).increment();
return fallbackTimestamp;
}