mirror of
https://github.com/amark/gun.git
synced 2025-06-07 22:56:42 +00:00
s3 typo fix
This commit is contained in:
parent
eb43c09388
commit
9d00f3886b
@ -18,12 +18,12 @@
|
|||||||
opt.ctx.load = opt.ctx.load || {};
|
opt.ctx.load = opt.ctx.load || {};
|
||||||
key = s3.prefix + s3.prenode + Gun.is.rel(key);
|
key = s3.prefix + s3.prenode + Gun.is.rel(key);
|
||||||
s3.GET(key, function(err, data, text, meta){
|
s3.GET(key, function(err, data, text, meta){
|
||||||
|
meta = meta || {};
|
||||||
Gun.log('via s3', key, err);
|
Gun.log('via s3', key, err);
|
||||||
if(err && err.statusCode == 404){
|
if(err && err.statusCode == 404){
|
||||||
err = null; // we want a difference between 'unfound' (data is null) and 'error' (auth is wrong).
|
err = null; // we want a difference between 'unfound' (data is null) and 'error' (auth is wrong).
|
||||||
}
|
}
|
||||||
if(data){
|
if(data){
|
||||||
meta = meta || {};
|
|
||||||
meta.soul = Gun.is.node.soul(data);
|
meta.soul = Gun.is.node.soul(data);
|
||||||
if(!meta.soul){
|
if(!meta.soul){
|
||||||
err = {err: Gun.log('No soul on node S3 data!')};
|
err = {err: Gun.log('No soul on node S3 data!')};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user