added the link pruning functionality

lot to correct and improve tho
This commit is contained in:
2024-08-02 15:14:03 +05:30
parent b20b15a29a
commit aba341d7a1
5 changed files with 264 additions and 24 deletions

View File

@@ -82,6 +82,10 @@ const callback = async (req, res) => {
}
}
);
if (userResponse.status >= 400 && userResponse.status < 500)
return res.status(userResponse.status).send(userResponse.data);
else if (userResponse.status >= 500)
return res.sendStatus(userResponse.status);
/** @type {typedefs.User} */
req.session.user = {