molly-db 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/module/_server_.js +1 -3
- package/package.json +1 -1
package/module/_server_.js
CHANGED
@@ -24,8 +24,6 @@ function bodyParser( _data ){
|
|
24
24
|
const date = Date.now(); _data = JSON.parse(_data);
|
25
25
|
const result = _data.length ? _data : [_data];
|
26
26
|
|
27
|
-
console.log( _data, typeof _data, _data.length, result );
|
28
|
-
|
29
27
|
return result.map(x=>{ if( !x?.hash )
|
30
28
|
x.hash = crypto.hash( date,Math.random() );
|
31
29
|
return JSON.stringify(x);
|
@@ -381,4 +379,4 @@ async function save( _params ){
|
|
381
379
|
} catch(e) { error(e?.message||e); }
|
382
380
|
})();
|
383
381
|
|
384
|
-
/* --------------------------------------------------------------------------------------- */
|
382
|
+
/* --------------------------------------------------------------------------------------- */
|