Update index.js
This commit is contained in:
@@ -19,9 +19,8 @@ app.get('/api/is_verified', (req, res) => {
|
||||
try {
|
||||
const data = getVerifiedUsers();
|
||||
res.status(200).json(data);
|
||||
} catch (error) {
|
||||
console.error("Ошибка!", error.message);
|
||||
res.status(500).json({ error: 'Ошибка сервера при получении статуса верификации' });
|
||||
} catch {
|
||||
res.status(200).json([]);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user