We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e786e2f commit cad66a6Copy full SHA for cad66a6
1 file changed
cms/routes/api/items.js
@@ -100,6 +100,7 @@ exports.daily = async function(req, res) {
100
* /api/items/month/2020-01
101
*/
102
exports.month = async function(req, res) {
103
+ const start = Date.now();
104
const dateStr = req.params.date,
105
date = moment(dateStr, "YYYY-M", true);
106
@@ -130,6 +131,8 @@ exports.month = async function(req, res) {
130
131
const obj = _.map(items, _.partialRight(_.pick, Items.fullResponseFields));
132
133
res.json(obj);
134
+ const millis = Date.now() - start;
135
+ console.log(`seconds elapsed = ${Math.floor(millis / 1000)}`);
136
};
137
138
/**
0 commit comments