-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.js
26 lines (20 loc) · 930 Bytes
/
notes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// module.exports = function (_nonce) {
// let tempAccount = new balances ({
// _id: new mongoose.Types.ObjectId(),
// nonce: _nonce,
// balance: 100,
// account: "wallet"
// });
//
// tempAccount.save(function(err) {
// if (err) return err;
// console.log('Account successfully saved.\n');
// });
// }
// blocks.find({round: _round}).exec(function(err,bloque) {if(err) return err; result = bloque;});
// blocks.findOne({round: _round}).then(data => console.log(data));
// blocks.findOne({round: _round}).then(data => console.log(result = data, 1));
// console.log(result, 2);
// return blocks.findOne({round: 9000}).exec(function(err,bloque) {if(err) return err; console.log("llego aca1"); console.log(bloque);return bloque; console.log("llego aca2");});//console.log(err,bloque, result);});
// console.log("llego aca3");// return mongoose.connection.readyState;
// return result;