feat: fiat payments (revolut)

ref: #24
This commit is contained in:
2025-03-11 12:42:25 +00:00
parent 1c282e460f
commit 45dd0c4398
32 changed files with 822 additions and 151 deletions

View File

@ -28,17 +28,17 @@ impl DataMigration for DnsDataMigration {
for vm in vms {
let mut ips = db.list_vm_ip_assignments(vm.id).await?;
for mut ip in &mut ips {
for ip in &mut ips {
let mut did_change = false;
if ip.dns_forward.is_none() {
let rec = BasicRecord::forward(&ip)?;
let rec = BasicRecord::forward(ip)?;
let r = dns.add_record(&rec).await?;
ip.dns_forward = Some(r.name);
ip.dns_forward_ref = r.id;
did_change = true;
}
if ip.dns_reverse.is_none() {
let rec = BasicRecord::reverse_to_fwd(&ip)?;
let rec = BasicRecord::reverse_to_fwd(ip)?;
let r = dns.add_record(&rec).await?;
ip.dns_reverse = Some(r.value);
ip.dns_reverse_ref = r.id;