fix(collab): sync REJECTED status between Telegram/Discord bot & website, fix mock data popup on empty DB
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled

This commit is contained in:
Shanmuga Krishnan S M
2026-08-06 14:06:54 +05:30
parent ed2910dc04
commit d896322227
3 changed files with 8 additions and 5 deletions

View File

@@ -136,6 +136,9 @@ public class CollabController {
@RequestParam String status) {
return collabApplicationRepository.findById(applicationId).map(app -> {
String newStatus = status.toUpperCase();
if ("DECLINED".equals(newStatus) || "DECLINE".equals(newStatus) || "REJECT".equals(newStatus)) {
newStatus = "REJECTED";
}
String oldStatus = app.getStatus();
app.setStatus(newStatus);
CollabApplication updated = collabApplicationRepository.save(app);