fix: additional 410 response for get affiliations endpoint

This commit is contained in:
2022-04-06 13:55:07 +02:00
parent 6650c82897
commit 06f758fcd1
+1 -1
View File
@@ -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);