mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-07 00:24:18 +00:00
refactor: Remove unused id field from DnsRecords object
This commit is contained in:
parent
ed1421e9c5
commit
b313cd340e
|
@ -9,7 +9,6 @@ class DnsRecord {
|
|||
required this.type,
|
||||
required this.name,
|
||||
required this.content,
|
||||
this.id,
|
||||
this.ttl = 3600,
|
||||
this.priority = 10,
|
||||
this.proxied = false,
|
||||
|
@ -32,8 +31,5 @@ class DnsRecord {
|
|||
final int priority;
|
||||
final bool proxied;
|
||||
|
||||
/// TODO: Refactoring refactoring refactoring refactoring >:c
|
||||
final int? id;
|
||||
|
||||
Map<String, dynamic> toJson() => _$DnsRecordToJson(this);
|
||||
}
|
||||
|
|
|
@ -129,7 +129,6 @@ class DigitalOceanDnsProvider extends DnsProvider {
|
|||
for (final rawRecord in result.data) {
|
||||
records.add(
|
||||
DnsRecord(
|
||||
id: rawRecord['id'],
|
||||
name: rawRecord['name'],
|
||||
type: rawRecord['type'],
|
||||
content: rawRecord['data'],
|
||||
|
|
Loading…
Reference in a new issue