sftp: add missing safe()
This commit is contained in:
@@ -552,7 +552,7 @@ async function authenticateSftp(req, res, next) {
|
||||
}
|
||||
|
||||
async function loadSftpConfig(req, res, next) {
|
||||
const [error, servicesConfig] = await settings.getServicesConfig();
|
||||
const [error, servicesConfig] = await safe(settings.getServicesConfig());
|
||||
if (error) return next(new ldap.OperationsError(error.toString()));
|
||||
|
||||
const sftpConfig = servicesConfig['sftp'] || {};
|
||||
|
||||
Reference in New Issue
Block a user