minor chages;

This commit is contained in:
huangjx
2022-04-29 22:49:59 +08:00
parent 3a13bfa244
commit 6195928b74
8 changed files with 19 additions and 18 deletions

View File

@@ -202,7 +202,8 @@ class MainController extends Controller
*/
public function scanFolder()
{
$resp = folderScan::sync();
$force = $this->request->getParam('force') ?? false;
$resp = $force ? folderScan::create()->scan() : folderScan::sync();
return new JSONResponse($resp);
}
/**