does this work? Check for typo errors... I didn't test.

This commit is contained in:
Mark Nadal 2021-11-11 15:11:58 -08:00 committed by GitHub
parent 74d2b077cd
commit 7e068ef2b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,15 +87,16 @@ function Store(opt){
if(err){ return Gun.log(err, err.stack) }
var IT = data.IsTruncated, cbe = function(cb){
if(cb.end){ return }
if(Gun.obj.map(data.Contents, function(content){
return cb(content.Key);
})){ cb.end = true; return }
var i = 0, c = data.Contents, tmp; while(tmp = c[i++]){
if(cb(tmp.Key)){ cb.end = true; break }
}
if(cb.end){ return }
if(IT){ return }
// Stream interface requires a final call to know when to be done.
cb.end = true; cb();
}
Gun.obj.map(cbs, cbe);
if(!IT){ Gun.obj.del(c.l, 1); return }
cbs.forEach(cbe);//Gun.obj.map(cbs, cbe);
if(!IT){ delete c.l[1]; return }
params.ContinuationToken = data.NextContinuationToken;
store.list(cb, match, params, cbs);
});