Skip to content

fix(server): resolve duplicate Mongoose schema indexes, missing Project model import, and add root npm scripts - #122

Merged
Mayur51015 merged 1 commit into
mainfrom
fix/duplicate-mongoose-indexes-and-admin-project-import
Aug 28, 2026
Merged

fix(server): resolve duplicate Mongoose schema indexes, missing Project model import, and add root npm scripts#122
Mayur51015 merged 1 commit into
mainfrom
fix/duplicate-mongoose-indexes-and-admin-project-import

Conversation

@Mayur51015

Copy link
Copy Markdown
Owner

Summary of Changes

1. Fixed Missing Project Model in adminController.js

  • Resolved ReferenceError: Project is not defined when querying admin dashboard stats metrics by importing the Project model in server/src/controllers/adminController.js.

2. Resolved Duplicate Mongoose Schema Index Warnings

  • Removed duplicate index on maviId in server/src/models/User.js.
  • Removed duplicate index on tenantId and redundant index flag on institutionCode in server/src/models/Institution.js.
  • Removed duplicate index on code in server/src/models/Role.js.
  • Cleaned up redundant index: true definitions paired with unique: true across CareerRoadmap.js, CareerScore.js, and CareerInsight.js.

3. Root package.json Workspace Script Enhancements

  • Added root start, client, and server convenience scripts to facilitate workspace execution directly from the repository root.

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mavi-linking Ready Ready Preview Aug 28, 2026 6:43pm
mavi-linking-mq7d Ready Ready Preview Aug 28, 2026 6:43pm

@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ed185894-0630-4f91-8068-8b71e9694ce4


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Mayur51015 Mayur51015 self-assigned this Aug 28, 2026
@Mayur51015
Mayur51015 merged commit 074362f into main Aug 28, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant