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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: add more usable data to the response of user following endpoint #426
Comments
Which endpoint are you referring to? |
This is related to the following endpoint: https://beta.api.opensauced.pizza/#/User%20service/getFollowingListByUsername and this issue as well: #425 |
Hey @nickytonline, I'm trying to add the /home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/driver/postgres/PostgresQueryRunner.ts:299
throw new QueryFailedError(query, parameters, err)
^
QueryFailedError: relation "logs" does not exist
at PostgresQueryRunner.query (/home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/driver/postgres/PostgresQueryRunner.ts:299:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at InsertQueryBuilder.execute (/home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/query-builder/InsertQueryBuilder.ts:163:33)
at SubjectExecutor.executeInsertOperations (/home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/persistence/SubjectExecutor.ts:434:42)
at SubjectExecutor.execute (/home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/persistence/SubjectExecutor.ts:137:9)
at EntityPersistExecutor.execute (/home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/persistence/EntityPersistExecutor.ts:197:21)
at LogService.createLog (/home/takanome_dev/projects/open-source/open-sauced/api.opensauced.pizza/src/log/log.service.ts:17:5)
^C I think I might miss a couple of migrations but I couldn't find the |
.take |
Thanks for taking this on! If you have not already, join the conversation in our Discord |
Related issue open-sauced/app#1452 |
Type of feature
馃崟 Feature
Current behavior
Right now, the endpoint only returns the user id. This doesn't make it easy to create the following page without making an extra api call to get each user's data.
Suggested solution
Additional user's data such as the
username
and `` can be very useful to generate a link to the user's profile and their profile pictureAdditional context
No response
Code of Conduct
Contributing Docs
The text was updated successfully, but these errors were encountered: