INNER CODE UNIT · TypeScript

loadNextModule

bcms/cms · backend/src/_server/main.ts:250

    function loadNextModule() {
        if (modules.length > 0) {
            const module = modules.splice(0, 1)[0];
            if (modules.length > 1 && module.name !== 'Logger') {
                logger.info('loadModule', module.name + ' ...');
            }
            const timeOffset = Date.now();
            try {
                let nextCalled = false;
                module.initialize({
                    name: module.name,
                    fastify,
                    rootConfig: config as ServerConfig,
                    next(error, data) {
                        if (nextCalled) {
                            return;
                        }
                        nextCalled = true;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…