Skip to content

Conversation

kylecarbs
Copy link
Member

Fixes #4359.

@@ -9,7 +9,10 @@ LIMIT
1;

-- name: GetUsersByIDs :many
SELECT * FROM users WHERE id = ANY(@ids :: uuid [ ]) AND deleted = @deleted;
-- This should check for deleted, because it's frequently used
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean shouldn't?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, ty

@kylecarbs kylecarbs merged commit daa34cf into main Oct 10, 2022
@kylecarbs kylecarbs deleted the fixdeleted branch October 10, 2022 18:03
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

Successfully merging this pull request may close these issues.

Coder fails to retrieve workspaces
2 participants