This commit is contained in:
Vidhya 2026-07-16 23:28:10 +05:30
parent 8186847726
commit 44a90afe19

View File

@ -543,12 +543,12 @@ app.get('/api/event-images', async (req, res) => {
});
// GET event images by event ID
app.get('/api/event-images/event/:eventId', authenticateToken, requireAdmin, async (req, res) => {
app.get('/api/event-images/event/:eventId', async (req, res) => {
try {
const [rows] = await pool.execute(
'SELECT * FROM event_images WHERE eventid = ? ORDER BY sort_order ASC, id ASC',
'SELECT * FROM event_images WHERE eventid = ? ORDER BY id ASC',
[req.params.eventId]
);
);
res.json({
success: true,
data: rows