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

Incomplete response message (unban user request) #62

Closed
mariarubina opened this issue Jun 30, 2022 · 1 comment
Closed

Incomplete response message (unban user request) #62

mariarubina opened this issue Jun 30, 2022 · 1 comment

Comments

@mariarubina
Copy link

mariarubina commented Jun 30, 2022

Steps to reproduce

  1. Post - login as admin.
  2. Post - create a teacher
  3. Get - list of teachers
  4. Ban a user (teacher) by id
  5. Unban a user by id

Actual behavior

There is no info about the reason and who unbanned

POST {{host}}/api/v1/change-user-ban?userId=88&ban=false
body
{
"reason": "just a wish"
}

response body

{
"result": "User successfully unbanned",
"isBanned": false,
"userId": 88,
"reason": "empty",
"createdBy": ""
}

Expected behavior
"reason" string should be filled like in the request body and "created by" string should be filled with admin name

Screenshots
image

@viraxslot
Copy link
Owner

Duplicate of #53

@viraxslot viraxslot marked this as a duplicate of #53 Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants