-
Notifications
You must be signed in to change notification settings - Fork 859
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 public assistants endpoint #318
Fix public assistants endpoint #318
Conversation
The frontend still references the I don't know if this code is functional or useful. Maybe consider removing this reference as well. |
Good point.
|
@andrewnguonly Removed. Can you have another look please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved and left one comment.
backend/app/storage.py
Outdated
), | ||
assistant_ids, | ||
) | ||
return await conn.fetch(("SELECT * FROM assistant WHERE public = true;")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double checking: I think the best practice (or technically correct) is to use the IS
operator to evaluate boolean expressions.
WHERE public IS TRUE;
This might not matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Changed.
Frontend no longer uses this endpoint so there is no use for shared_id. Without that, the endpoint was always returning an empty list.