This commit is contained in:
cay 2026-03-28 09:14:41 +00:00
parent be004a30c0
commit 0a275f170d

View File

@ -10,7 +10,7 @@ const { requireAdmin } = require('../middleware/auth');
router.get('/', requireAdmin, async (req, res) => {
try {
const [members] = await db.query(`
SELECT id, first_name, last_name, email, status,
SELECT m.id, m.first_name, m.last_name, m.email, m.status,
t.name as tariff_name
FROM memberships m
LEFT JOIN tariffs t ON m.tariff_id = t.id