fix: remove bot accounts from list api (#344)

This commit is contained in:
pablohashescobar 2023-02-28 02:08:34 +05:30 committed by GitHub
parent 90b8d66946
commit 1ff0970ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,7 +414,7 @@ class WorkSpaceMemberViewSet(BaseViewSet):
return self.filter_queryset(
super()
.get_queryset()
.filter(workspace__slug=self.kwargs.get("slug"))
.filter(workspace__slug=self.kwargs.get("slug"), is_bot=False)
.select_related("workspace", "workspace__owner")
.select_related("member")
)