0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery into experimentalNotificationDB

This commit is contained in:
Víctor Losada Hernández
2024-09-18 21:32:19 +02:00

View File

@@ -43,9 +43,9 @@ const NotificationLookup = ()=>{
try {
const res = await request.get('/admin/notification/all');
setNotifications(res.body || []);
} catch (error) {
console.log(error);
setError(`Error looking up notifications: ${error.response.body.message}`)
} catch (err) {
console.log(err);
setError(`Error looking up notifications: ${err.response.body.message}`)
} finally {
setSearching(false);
}
@@ -69,9 +69,9 @@ const NotificationLookup = ()=>{
setFoundNotification(null);
}
lookupAll();
} catch (error) {
console.log(error);
setError(`Error deleting notification: ${error.response.body.message}`)
} catch (err) {
console.log(err);
setError(`Error deleting notification: ${err.response.body.message}`)
};
}