瀏覽代碼

Update ApiV1Controller, fix update_credentials endpoint

Daniel Supernault 5 年之前
父節點
當前提交
a73fad75b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Api/ApiV1Controller.php

+ 1 - 1
app/Http/Controllers/Api/ApiV1Controller.php

@@ -152,7 +152,7 @@ class ApiV1Controller extends Controller
         $this->validate($request, [
             'display_name'      => 'nullable|string',
             'note'              => 'nullable|string',
-            'locked'            => 'nullable|boolean',
+            'locked'            => 'nullable',
             // 'source.privacy'    => 'nullable|in:unlisted,public,private',
             // 'source.sensitive'  => 'nullable|boolean'
         ]);