Commit a3e17d25 authored by 刘松's avatar 刘松

update statistics

parent 0132de15
module.exports = require('./config.default.js');
\ No newline at end of file
'use strict';
try {
module.exports = require('./config_current.js');
} catch (err) {
module.exports = require('./config_default.js');
}
\ No newline at end of file
......@@ -83,7 +83,7 @@ exports.detail = async(req,res,next) => {
}
];
const upstreams = await upstream.aggregate(pipeline);
res.send({result: 'ok' ,data: { users: users.map(x => x.toJSON()), upstreams: upstreams, pagination:{ current:parseInt(skip),total: total, pageSize:parseInt(limit)}}})
res.send({result: 'ok' ,data: { users: users.map(x => x.toJSON()), upstreams: upstreams, pagination:{ current:parseInt(skip)+1,total: total, pageSize:parseInt(limit)}}})
} catch ( err ) {
console.dir(err);
res.status(400);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment