fix spelling issue

This commit is contained in:
Aidan 2024-12-17 10:53:19 -05:00
parent 78d6d9f2e1
commit b9cbd22d8b
No known key found for this signature in database
GPG Key ID: 1773A01F0EFE4FC1

2
app.js
View File

@ -155,7 +155,7 @@ app.get('/admin/dashboard', checkAdminAuth, async (req, res) => {
app.post('/admin/update-status', checkAdminAuth, async (req, res) => { app.post('/admin/update-status', checkAdminAuth, async (req, res) => {
const { id, status } = req.body; const { id, status } = req.body;
await Request.update({ status }, { where: { id } }); await Request.update({ status }, { where: { id } });
res.redireHot('/admin/dashboard'); res.redirect('/admin/dashboard');
}); });
app.post('/admin/delete-request', checkAdminAuth, async (req, res) => { app.post('/admin/delete-request', checkAdminAuth, async (req, res) => {