rm old changes

This commit is contained in:
Matias Alejo Garcia 2016-11-24 10:01:59 -03:00
parent 210b73d198
commit 598f6f1361
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
2 changed files with 2 additions and 12 deletions

View File

@ -56,15 +56,7 @@ ExpressApp.prototype.start = function(opts, cb) {
var POST_LIMIT = 1024 * 100 /* Max POST 100 kb */ ;
this.app.use(bodyParser.json({
limit: POST_LIMIT,
verify: function(req, res, buf, encoding) {
// get rawBody
req.rawBody = buf.toString();
console.log("rawBody", req.rawBody);
console.log("headers", req.headers);
}
limit: POST_LIMIT
}));
if (opts.disableLogs) {

View File

@ -49,8 +49,7 @@ Storage.prototype._createIndexes = function() {
});
this.db.collection(collections.TXS).createIndex({
walletId: 1,
isPending: 1,
createdOn: 1
createdOn: -1,
});
this.db.collection(collections.NOTIFICATIONS).createIndex({
walletId: 1,
@ -75,7 +74,6 @@ Storage.prototype._createIndexes = function() {
walletId: 1,
txid: 1,
});
};
Storage.prototype.connect = function(opts, cb) {