diff --git a/src/controllers/SettingsController.ts b/src/controllers/SettingsController.ts index 4d986eb..da89050 100644 --- a/src/controllers/SettingsController.ts +++ b/src/controllers/SettingsController.ts @@ -63,7 +63,7 @@ export class SettingsController { if(virtualDirectory.length > 0) { virtualDirectory = h.postVirtualDirectory("virtualDirectory"); - if(!checkVirtualDirectoryAvailability(virtualDirectory, h.getUserId(), VirtualDirType.USER)) + if(!await checkVirtualDirectoryAvailability(virtualDirectory, h.getUserId(), VirtualDirType.USER)) h.error(401, "The specified virtual directory is not available!"); }