refactor: Remove redundant zone id cache for Cloudflare #371

Merged
NaiJi merged 2 commits from cloudflare-caching into master 2023-10-06 23:37:35 +03:00
1 changed files with 0 additions and 7 deletions

View File

@ -69,13 +69,6 @@ class CloudflareDnsProvider extends DnsProvider {
)
.toList();
/// TODO: Remove when domain selection for more than one domain on account is implemented, move cachedZoneId writing to domain saving method
_adapter = ApiAdapter(
isWithToken: true,
cachedDomain: result.data[0].name,
cachedZoneId: result.data[0].id,

_adapter will receive cachedDomain and cachedZoneId from syncZoneId() anytime we call any method, so this hardcode is too much as we already have support for selection from several domains

`_adapter` will receive `cachedDomain` and `cachedZoneId` from `syncZoneId()` anytime we call any method, so this hardcode is too much as we already have support for selection from several domains
);
return GenericResult(
success: true,
data: domains,