reps defects
This commit is contained in:
@@ -36,7 +36,7 @@ import {
|
||||
import _ from "lodash";
|
||||
import nextConnect from "next-connect";
|
||||
import middleware from "../middleware/middleware";
|
||||
import { hashAPIPath } from "../../../actions";
|
||||
import { consoleLogger, hashAPIPath } from "../../../actions";
|
||||
|
||||
const ApiProxy = nextConnect();
|
||||
ApiProxy.use(middleware);
|
||||
@@ -80,7 +80,9 @@ ApiProxy.get(async (req, res) => {
|
||||
error +
|
||||
"\n///////////////////////\n"
|
||||
);
|
||||
console.log("API call error", error);
|
||||
//console.log("API call error", error);
|
||||
|
||||
console.log(consoleLogger(error));
|
||||
});
|
||||
} else {
|
||||
return res.status(400).json({ msg: "error" });
|
||||
|
||||
Reference in New Issue
Block a user