[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:
Bavisetti Narayan 2024-08-05 17:40:49 +05:30 committed by GitHub
parent 91e4da502a
commit 07574b4222
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 64 additions and 0 deletions

View file

@ -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)