migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
import assert from 'node:assert';
|
||||
import AuditSource from '../auditsource.js';
|
||||
import BoxError from '../boxerror.js';
|
||||
import * as externalLdap from '../externalldap.js';
|
||||
import externalLdap from '../externalldap.js';
|
||||
import { HttpError } from '@cloudron/connect-lastmile';
|
||||
import { HttpSuccess } from '@cloudron/connect-lastmile';
|
||||
import safe from 'safetydance';
|
||||
|
||||
export {
|
||||
getConfig,
|
||||
setConfig,
|
||||
sync
|
||||
};
|
||||
|
||||
async function sync(req, res, next) {
|
||||
const [error, taskId] = await safe(externalLdap.startSyncer());
|
||||
@@ -45,3 +40,9 @@ async function setConfig(req, res, next) {
|
||||
|
||||
next(new HttpSuccess(200, {}));
|
||||
}
|
||||
|
||||
export default {
|
||||
getConfig,
|
||||
setConfig,
|
||||
sync
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user