Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hide sensitive data #404

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: correct populate query string
  • Loading branch information
sidemt committed Jan 30, 2024
commit 8653984bd87e87fe77aa3d453d88e3ac20001d0b
2 changes: 1 addition & 1 deletion apps/backend/tests/post/index.js
Expand Up @@ -42,7 +42,7 @@ describe("post", () => {
describe("GET /posts", () => {
it("should return only the current user's posts for contributors", async () => {
const response = await request(strapi.server.httpServer)
.get(`/api/posts?populate=author`)
.get(`/api/posts?populate[0]=author`)
.set("Content-Type", "application/json")
.set("Authorization", `Bearer ${contributorJWT}`)
.send();
Expand Down