Skip to content

Commit a4ecf87

Browse files
committed
add status field in matchingService
1 parent 79af2b6 commit a4ecf87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

peer-prep/src/matching-service/controllers/matchingController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ async function findMatch(req, res, next) {
1313
case 'success':
1414
res.status(200).json(matchResult);
1515
break;
16-
case 'failed':
17-
res.status(400).json(matchResult);
16+
case 'error':
17+
res.status(500).json(matchResult);
1818
break;
1919
case 'cancel':
2020
res.status(200).json(matchResult);
2121
break;
2222
default:
23-
res.status(500).json({message:'Failed to find a match. Please try again!'});
23+
res.status(500).json({message:'Unknown error. Please try again!'});
2424
}
2525

2626
} catch (error) {

0 commit comments

Comments
 (0)