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

[Habit-Assign GET/habit/assign/more] unable to get “users Id who created custom habit” in response body #38

Open
Oleksandra-Kobets opened this issue Sep 24, 2023 · 0 comments

Comments

@Oleksandra-Kobets
Copy link
Collaborator

Environment:
Windows 11 Home 22H2
Google Chrome Version 117.0.5938.89 (64-bit)
GreenCityDocker-3
Postman 10.17.7

Reproducible: always.

Preconditions:
GreenCityDocker-3 is built and running
User is authorized
At least one habit is created by user

Steps to reproduce:

  1. Select section “habit-assign-controller”.
  2. Select the GET/habit/assign/more
  3. Set the habitAsssignId of the created habit by user as the value of the id parameter
  4. Send the request.
  5. Compare the returned response with the actual one.

Actual result:
Response code 200 and "usersIdWhoCreatedCustomHabit" is null

Expected result:
Response code 200 and "usersIdWhoCreatedCustomHabit": “number of id user”

Attachments
In habitAssignId I put 6 from the database. This is assign for user 7, for habit with id 34.
13

User 7 as well created a habit with id 34.
14

But in the response body we get null instead of 7.

15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant