fixup! TF-4236 Misleading variable name: maxBatches represents batch size, not batch count.

This commit is contained in:
Dat H. Pham
2026-01-26 17:59:36 +07:00
committed by Dat H. Pham
parent 38074ab9f7
commit 4f27dc53ce
2 changed files with 565 additions and 4 deletions
@@ -68,10 +68,16 @@ mixin BatchSetEmailProcessingMixin on HandleSetErrorMixin, MailAPIMixin {
final response =
await (requestBuilder..usings(capabilities)).build().execute();
final setEmailResponse = response.parse<SetEmailResponse>(
setEmailInvocation.methodCallId,
SetEmailResponse.deserialize,
);
SetEmailResponse? setEmailResponse;
try {
setEmailResponse = response.parse<SetEmailResponse>(
setEmailInvocation.methodCallId,
SetEmailResponse.deserialize,
);
} catch (e) {
log('EmailAPI::$debugLabel: Failed to parse response: $e');
setEmailResponse = null;
}
if (setEmailResponse == null) {
log('EmailAPI::$debugLabel: Batch from ${start + 1} to $end returned null response');