mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Fix error when trying to create a new page through api
This commit is contained in:
Binary file not shown.
+1
-1
@@ -204,7 +204,7 @@ class PageViewSet(viewsets.ModelViewSet):
|
||||
|
||||
# Trigger screenshot capture if needed
|
||||
from .tasks import capture_screenshot
|
||||
capture_screenshot.delay(serializer.instance.id)
|
||||
capture_screenshot.delay(serializer.instance.id, serializer.instance.id) # Use page_id as screenshot_id
|
||||
|
||||
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user