Skip to content

Commit

Permalink
fix: 404 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed May 6, 2022
1 parent 7314561 commit c027dea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/models/projects/projects.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,6 @@ class Project extends Model {
isUpdateComment,
);

console.log('#############', commentChangeList);

return {
projects: [
..._.get(insertChangeList, 'project', []),
Expand Down
2 changes: 1 addition & 1 deletion src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ app.use(async function (req, res, next) {
await assertWalletIsAvailable();
next();
} catch (err) {
res.status(404).json({ message: err.message });
res.status(400).json({ message: err.message });
}
});

Expand Down
1 change: 1 addition & 0 deletions tests/resources/units.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ describe('Units Resource CRUD', function () {
const responsePost = await supertest(app)
.post('/v1/units')
.send(newUnit);

expect(responsePost.statusCode).to.equal(400);
expect(responsePost.body.error).to.equal(
'Can not establish connection to Chia Datalayer',
Expand Down

0 comments on commit c027dea

Please sign in to comment.