[WEB-2092] chore: favorite delete changes (#5302)
* chore: favorite delete changes * chore: removed deploy board deletion * chore: favorite entity deletion
This commit is contained in:
parent
91e4da502a
commit
07574b4222
7 changed files with 64 additions and 0 deletions
|
|
@ -359,6 +359,13 @@ class PageViewSet(BaseViewSet):
|
|||
).update(parent=None)
|
||||
|
||||
page.delete()
|
||||
# Delete the user favorite page
|
||||
UserFavorite.objects.filter(
|
||||
project=project_id,
|
||||
workspace__slug=slug,
|
||||
entity_identifier=pk,
|
||||
entity_type="page",
|
||||
).delete()
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue