mirror of
https://github.com/amark/gun.git
synced 2025-11-23 22:15:55 +00:00
does this work? Check for typo errors... I didn't test.
This commit is contained in:
parent
74d2b077cd
commit
7e068ef2b0
11
lib/rs3.js
11
lib/rs3.js
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user