Amal Jose commited on
Commit ·
c6260d1
1
Parent(s): be9cdd0
enabled consumers and added redis emitter
Browse filesFiles changed (3)
20 unmodified lines212223242425262720 unmodified lines console.log(`RAM free: ${freeMem.toFixed(2)} GB`); } httpServer.listen(PORT, () => console.log(`Server running on port ${PORT}`)); //await startKafkaConsumer(); await startKafkaConsumer();};
startServer().catch((e) => {67 unmodified lines686970717172737467 unmodified lines if (!canDeploy.user) { throw new AppError(USER_ERRORS.NOT_FOUND, STATUS_CODES.NOT_FOUND); } if (canDeploy.allowed) { if (!canDeploy.allowed) { throw new AppError(DEPLOYMENT_ERRORS.DAILY_DEPLOYMENT_LIMIT, STATUS_CODES.TOO_MANY_REQUESTS); }
78 unmodified lines798081828283848578 unmodified lines throw new AppError(PROJECT_ERRORS.CREATE_FAILED + "; Projects creation currently disabled", STATUS_CODES.BAD_REQUEST); }
if (user?.projects < PLANS[user.plan].maxProjects) { if (user?.projects > PLANS[user.plan].maxProjects) { throw new AppError(PROJECT_ERRORS.LIMIT_REACHED, STATUS_CODES.FORBIDDEN); } const newProject = await this.projectRepository.createProject(projectData);src/server.ts+1-1
src/services/deployment.service.ts+1-1
src/services/project.service.ts+1-1