Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed May 20, 2021
1 parent 4b8d00b commit d3d3de3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ app.post("/authenticate", async function (req, res) {
sameSite: true,
httpOnly: false,
});
// res.sendStatus(200);
res.send(token);
} catch (e) {
console.log(e);
Expand Down Expand Up @@ -171,7 +170,6 @@ app.post("/add", async function (req, res) {
});

app.post("/mint", async function (req, res) {
console.log("mint2", req.body);
try {
const { minter, uri, count, type } = req.body;
let status;
Expand Down Expand Up @@ -224,8 +222,7 @@ app.post("/approve", auth, async function (req, res) {
status = await ERC1155_v1.methods
.mintTocaller(item.minter, item.count, encodedParams, item.uri)
.send({ from: account.address, gas: 500000 });
const result = await collection.deleteOne({ _id: id });
console.log(status);
const result = await collection.deleteOne({ _id: ObjectId(id) });
res.send(status);
} catch (e) {
console.log(e);
Expand Down

0 comments on commit d3d3de3

Please sign in to comment.