fix(professors, settings): add auto-migration for legacy professors, deep populate user in class/session/course services, and fix SMS bypass number persistence
This commit is contained in:
@@ -122,6 +122,9 @@ const PORT = config.PORT || 3000;
|
||||
const startServer = async () => {
|
||||
await connectDB();
|
||||
|
||||
const { migrateAndLinkProfessorsToUsers } = require('./components/professors/professorMigration');
|
||||
await migrateAndLinkProfessorsToUsers();
|
||||
|
||||
if (config.NODE_ENV === 'production') {
|
||||
logger.info('Running production bootstrap (roles + SuperAdmin from env)');
|
||||
await seedDatabase({ disconnectOnComplete: false });
|
||||
|
||||
Reference in New Issue
Block a user