Skip to content
Snippets Groups Projects
Commit 39bd571e authored by Éloïs's avatar Éloïs
Browse files

fix(peers): save peer in rust db when edit peer status

parent a8bccaac
No related branches found
No related tags found
1 merge request!1388Prepare peers db for future migration
......@@ -1232,6 +1232,7 @@ export class FileDAL implements ServerDAO {
p.status = "UP";
p.first_down = null;
p.last_try = null;
this.rustServer.savePeer(PeerDTO.fromDBPeer(p));
return this.peerDAL.savePeer(p);
} catch (err) {
return null;
......@@ -1250,6 +1251,7 @@ export class FileDAL implements ServerDAO {
p.first_down = now;
}
p.last_try = now;
this.rustServer.savePeer(PeerDTO.fromDBPeer(p));
await this.peerDAL.savePeer(p);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment