Commit 2a85bfb5 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Do not remove a peer from the database

parent 5647a1f4
......@@ -111,12 +111,6 @@ export class PeeringService {
if(!found && thePeerDTO.endpoints.length === 0){
throw 'Peer with zero endpoints that is not already known'
if(found && thePeerDTO.endpoints.length === 0){
// This peer is saying "I'm no more joinable"
// ==> Remove it from the database
await this.dal.removePeerByPubkey(thePeerDTO.pubkey)
return thePeerDTO
else if(found){
// Already existing peer
const sp2 = found.block.split('-');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment