浏览代码

implement review suggestions

crobibero 5 年之前
父节点
当前提交
b28dd47a0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Jellyfin.Api/Controllers/VideoAttachmentsController.cs

+ 1 - 1
Jellyfin.Api/Controllers/VideoAttachmentsController.cs

@@ -78,7 +78,7 @@ namespace Jellyfin.Api.Controllers
             }
             catch (ResourceNotFoundException e)
             {
-                return StatusCode(StatusCodes.Status404NotFound, e.Message);
+                return NotFound(e.Message);
             }
         }
     }