mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +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.type,
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.content,
|
required this.content,
|
||||||
this.id,
|
|
||||||
this.ttl = 3600,
|
this.ttl = 3600,
|
||||||
this.priority = 10,
|
this.priority = 10,
|
||||||
this.proxied = false,
|
this.proxied = false,
|
||||||
|
@ -32,8 +31,5 @@ class DnsRecord {
|
||||||
final int priority;
|
final int priority;
|
||||||
final bool proxied;
|
final bool proxied;
|
||||||
|
|
||||||
/// TODO: Refactoring refactoring refactoring refactoring >:c
|
|
||||||
final int? id;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => _$DnsRecordToJson(this);
|
Map<String, dynamic> toJson() => _$DnsRecordToJson(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,6 @@ class DigitalOceanDnsProvider extends DnsProvider {
|
||||||
for (final rawRecord in result.data) {
|
for (final rawRecord in result.data) {
|
||||||
records.add(
|
records.add(
|
||||||
DnsRecord(
|
DnsRecord(
|
||||||
id: rawRecord['id'],
|
|
||||||
name: rawRecord['name'],
|
name: rawRecord['name'],
|
||||||
type: rawRecord['type'],
|
type: rawRecord['type'],
|
||||||
content: rawRecord['data'],
|
content: rawRecord['data'],
|
||||||
|
|
Loading…
Reference in a new issue