Skip to content

Commit 978c9e9

Browse files
authored
Merge branch 'develop' into fetch-logs
2 parents 1b65791 + 5dc221c commit 978c9e9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

routes/arts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { devFlagMiddleware } from "../middlewares/devFlag";
88
router.get("/", arts.fetchArts);
99
router.get("/user/self", authenticate, arts.getSelfArts); // this route is soon going to be deprecated soon, please use /arts/:userId endpoint.
1010
router.get("/user/:userId", authenticate, arts.getUserArts); // this route is soon going to be deprecated soon, please use /arts/:userId endpoint.
11-
router.get("/:userId", devFlagMiddleware, authenticate, arts.getUserArts);
11+
router.get("/:userId", authenticate, arts.getUserArts);
1212
router.post("/user/add", authenticate, artValidator.createArt, arts.addArt);
1313

1414
module.exports = router;

test/integration/arts.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe("Arts", function () {
152152
it("Should get all the arts of the user", function (done) {
153153
chai
154154
.request(app)
155-
.get(`/arts/${userId}?dev=true`)
155+
.get(`/arts/${userId}`)
156156
.set("cookie", `${cookieName}=${jwt}`)
157157
.end((err, res) => {
158158
if (err) {
@@ -172,7 +172,7 @@ describe("Arts", function () {
172172
it("Should return 401, for Unauthenticated User", function (done) {
173173
chai
174174
.request(app)
175-
.get(`/arts/${userId}?dev=true`)
175+
.get(`/arts/${userId}`)
176176
.end((err, res) => {
177177
if (err) {
178178
return done(err);
@@ -195,7 +195,7 @@ describe("Arts", function () {
195195

196196
chai
197197
.request(app)
198-
.get(`/arts/${userId}?dev=true`)
198+
.get(`/arts/${userId}`)
199199
.set("cookie", `${cookieName}=${jwt}`)
200200
.end((err, res) => {
201201
artsQuery.fetchUserArts.restore();
@@ -215,7 +215,7 @@ describe("Arts", function () {
215215

216216
chai
217217
.request(app)
218-
.get(`/arts/${userId}?dev=true`)
218+
.get(`/arts/${userId}`)
219219
.set("cookie", `${cookieName}=${jwt}`)
220220
.end((err, res) => {
221221
artsQuery.fetchUserArts.restore();

0 commit comments

Comments
 (0)