refactor(backend): add status constants and update code to use them

- Create constants/statuses.js with MATCH_STATUS, SUGGESTION_STATUS
- Update routes/dashboard.js to use MATCH_STATUS
- Update routes/matches.js to use MATCH_STATUS
- Update routes/events.js to use SUGGESTION_STATUS
- Update services/matching.js to use SUGGESTION_STATUS
- Update tests to use constants
This commit is contained in:
Radosław Gierwiało
2025-11-23 22:40:54 +01:00
parent 408317b974
commit 0ca79b6c7d
9 changed files with 56 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
const { MATCH_STATUS, SUGGESTION_STATUS } = require('./statuses');
module.exports = {
MATCH_STATUS,
SUGGESTION_STATUS,
};