migrate to "export default"

also, set no-use-before-define in linter
This commit is contained in:
Girish Ramakrishnan
2026-02-14 15:43:24 +01:00
parent ddb46646fa
commit 36aa641cb9
231 changed files with 2846 additions and 2728 deletions
+7 -6
View File
@@ -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
};