AssigningPoints - IEEE-Team-3/map GitHub Wiki
Points are awarded to users based on their performance and completion of tasks. Points can be assigned manually by admins, automatically by task completion, or based on achievements and milestones.
- Admins or team leads can manually assign points to users.
- Points can also be assigned automatically upon task completion or achievement.
- Points for completing tasks are assigned when the task is marked as "completed."
- Bonus points and penalty points are assigned based on specific actions (e.g., exceptional task completion, late submissions).
- Role-based points are assigned based on the user’s role in the team or organization.
function assignPoints(userId, points, type, reason) {
const point = new Point({
userId,
points,
type,
reason,
});
point.save();
}