fix(transit): mark the plan fallback's quota counts as independent writes

The empty-result fallback can call Google after Transitous, so lint:tx now sees two googleQuota.record() calls in TransitService.plan. Only one of them runs per request, and each is a call counter written after its own upstream request, so it cannot share a transaction with it.
This commit is contained in:
Maurice
2026-10-30 23:36:35 +01:00
parent c4c63ffd62
commit 324ee69151
+7 -1
View File
@@ -223,7 +223,13 @@ export class TransitService {
return { ...data, provider };
}
/** Route search between two coordinates. Returns compact itineraries for the picker. */
/**
* Route search between two coordinates. Returns compact itineraries for the picker.
*
* @txIndependent the only writes are Google's daily call counter, one after each
* upstream request; each count stands on its own and cannot share a transaction
* with the HTTP call it records.
*/
async plan(
q: PlanQuery,
language?: string,