accepting request working
This commit is contained in:
@@ -93,7 +93,7 @@ async function updateRelationshipState(req: Request, res: Response) {
|
||||
requestObj.newState
|
||||
);
|
||||
|
||||
updateResult?.acknowledged
|
||||
updateResult?.modifiedCount
|
||||
? res.status(200).send("Updated state of relationship")
|
||||
: res.status(500).send("Failed to update relationship");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user