Finally fixed external nodes!!!

This commit is contained in:
naielv
2025-06-13 15:52:31 +02:00
parent 249ae45273
commit ae1a01b793
2 changed files with 6 additions and 4 deletions

View File

@@ -1825,8 +1825,9 @@
});
root.on('put', function(msg){
this.to.next(msg); // remember to call next middleware adapter
var put = msg.put, soul = put['#'], key = put['.'], id = msg['#'], ok = msg.ok||'', tmp; // pull data off wire envelope
if (!(root.next || '')[soul]) return;
this.to.next(msg); // remember to call next middleware adapter
disk[soul] = Gun.state.ify(disk[soul], key, put['>'], put[':'], soul); // merge into disk object
if(stop && size > (4999880)){ root.on('in', {'@': id, err: "localStorage max!"}); return; }
//if(!msg['@']){ acks.push(id) } // then ack any non-ack write. // TODO: use batch id.