fix: Change .id field to ['id'] for DnsRecord in Digital Ocean DNS

This commit is contained in:
NaiJi 2023-06-09 06:13:16 -03:00
parent 55f62f1200
commit bfd67bac8d

View file

@ -105,7 +105,7 @@ class DigitalOceanDnsApi extends DnsProviderApi {
final List<Future> allDeleteFutures = [];
for (final record in records) {
allDeleteFutures.add(
client.delete('/domains/$domainName/records/${record.id}'),
client.delete("/domains/$domainName/records/${record['id']}"),
);
}
await Future.wait(allDeleteFutures);