remove console log
This commit is contained in:
1 parent
4624a51a80
commit
6a08097be1
2 files changed
-11
No files matched your search
@@ -8,7 +8,6 @@ class DistributedUptimeController {
|
|||||||
|
|
||||||
async resultsCallback(req, res, next) {
|
async resultsCallback(req, res, next) {
|
||||||
try {
|
try {
|
||||||
console.log(req.body);
|
|
||||||
res.status(200).json({ message: "OK" });
|
res.status(200).json({ message: "OK" });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw handleError(error, SERVICE_NAME, "resultsCallback");
|
throw handleError(error, SERVICE_NAME, "resultsCallback");
|
||||||
|
|||||||
@@ -497,7 +497,6 @@ const getMonitorById = async (monitorId) => {
|
|||||||
|
|
||||||
const getMonitorsByTeamId = async (req) => {
|
const getMonitorsByTeamId = async (req) => {
|
||||||
let { limit, type, page, rowsPerPage, filter, field, order } = req.query;
|
let { limit, type, page, rowsPerPage, filter, field, order } = req.query;
|
||||||
console.log("req.query", req.query);
|
|
||||||
limit = parseInt(limit);
|
limit = parseInt(limit);
|
||||||
page = parseInt(page);
|
page = parseInt(page);
|
||||||
rowsPerPage = parseInt(rowsPerPage);
|
rowsPerPage = parseInt(rowsPerPage);
|
||||||
@@ -513,15 +512,6 @@ const getMonitorsByTeamId = async (req) => {
|
|||||||
|
|
||||||
const skip = page && rowsPerPage ? page * rowsPerPage : 0;
|
const skip = page && rowsPerPage ? page * rowsPerPage : 0;
|
||||||
const sort = { [field]: order === "asc" ? 1 : -1 };
|
const sort = { [field]: order === "asc" ? 1 : -1 };
|
||||||
|
|
||||||
console.log("limit", limit);
|
|
||||||
console.log("page", page);
|
|
||||||
console.log("rowsPerPage", rowsPerPage);
|
|
||||||
console.log("filter", filter);
|
|
||||||
console.log("field", field);
|
|
||||||
console.log("order", order);
|
|
||||||
console.log("skip", skip);
|
|
||||||
console.log("sort", sort);
|
|
||||||
const results = await Monitor.aggregate([
|
const results = await Monitor.aggregate([
|
||||||
{ $match: matchStage },
|
{ $match: matchStage },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user