This commit is contained in:
Raymond Hill 2018-08-14 07:33:54 -04:00
parent 6db88e67b1
commit 4bb1ec5cff
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -164,7 +164,7 @@ let decodeValue = function(key, inputArray) {
return {
encode: function(key, dataIn) {
if ( typeof dataIn !== 'string' || dataIn.length < 4096 ) {
return Promise.resolve({ key, dataIn });
return Promise.resolve({ key, data: dataIn });
}
ttlManage(1);
return init().then(( ) => {
@ -178,7 +178,7 @@ return {
},
decode: function(key, dataIn) {
if ( dataIn instanceof Blob === false ) {
return Promise.resolve({ key, dataIn });
return Promise.resolve({ key, data: dataIn });
}
ttlManage(1);
return Promise.all([