Compare commits
No commits in common. "c584df814f1e643db77ed1344d97e7f8e5e55f54" and "ee7f3ffea35d63b799fa4d69b60a626f968e89aa" have entirely different histories.
c584df814f
...
ee7f3ffea3
@ -204,11 +204,7 @@ class ShelfViewSet(viewsets.ViewSet):
|
||||
except StoryShelf.DoesNotExist:
|
||||
return error(code=ErrorCode.SHELF_NOT_FOUND, message='书架不存在')
|
||||
|
||||
with transaction.atomic():
|
||||
try:
|
||||
Story.objects.filter(shelf=shelf).update(shelf=None)
|
||||
except Exception:
|
||||
Story.objects.filter(shelf=shelf).delete()
|
||||
shelf.delete()
|
||||
return success(message='删除成功')
|
||||
|
||||
|
||||
@ -32,9 +32,8 @@ def report_to_log_center(exc, context):
|
||||
|
||||
payload = {
|
||||
"project_id": "rtc_backend",
|
||||
"environment": os.environ.get('ENVIRONMENT', 'development'),
|
||||
"environment": os.environ.get('ENVIRONMENT', 'production'),
|
||||
"level": "ERROR",
|
||||
"repo_url": "https://gitea.airlabs.art/zyc/rtc_backend.git",
|
||||
"error": {
|
||||
"type": type(exc).__name__,
|
||||
"message": str(exc),
|
||||
|
||||
@ -47,9 +47,8 @@ def _report_exception(exc, request):
|
||||
|
||||
payload = {
|
||||
"project_id": "rtc_backend",
|
||||
"environment": os.environ.get('ENVIRONMENT', 'development'),
|
||||
"environment": os.environ.get('ENVIRONMENT', 'production'),
|
||||
"level": "ERROR",
|
||||
"repo_url": "https://gitea.airlabs.art/zyc/rtc_backend.git",
|
||||
"error": {
|
||||
"type": type(exc).__name__,
|
||||
"message": str(exc),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user