API: Get all workspaces of user returns every workspace as default #587
Labels
difficulty: 2
good first issue
Good for newcomers
priority: high
scope: api
Everything related to the API
type: bug
Something isn't working
Describe the bug
All returned workspaces from
/workspace
containsisDefault: true
, whereas only one workspace should be a default one. This happens when a user becomes a member of host's default workpsace.Endpoints Affected
/workspace
/workspace/:workspaceSlug
To Reproduce
Steps to reproduce the behavior:
/workpsace
. Each of the workspace hasisDefault
set totrue
.Expected behavior
A single Default workspace of User2 should have isDefault:true.
The text was updated successfully, but these errors were encountered: