fix: additional 410 response for get affiliations endpoint
This commit is contained in:
+1
-1
@@ -328,7 +328,7 @@ router.get('/affiliations/:target', async function (req, res) {
|
||||
if (dres.rowCount > 0) {
|
||||
res.send(dres.rows[0].value);
|
||||
} else {
|
||||
res.status(404).json(null);
|
||||
res.status(410).json({status:"groupchat not found - probably deleted"});
|
||||
}
|
||||
} else {
|
||||
res.status(500).json(derr);
|
||||
|
||||
Reference in New Issue
Block a user