From 925638250ba763b111ebb59d9927e94a1aa74e9f Mon Sep 17 00:00:00 2001 From: posimai Date: Sun, 19 Apr 2026 13:37:24 +0900 Subject: [PATCH] fix(together): include invite_code in GET /together/groups/:id response Was accidentally excluded from SELECT, causing invite code to disappear in the settings panel. Co-Authored-By: Claude Sonnet 4.6 --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 6976a052..8fb50e95 100644 --- a/server.js +++ b/server.js @@ -2591,7 +2591,7 @@ ${excerpt} r.get('/together/groups/:groupId', async (req, res) => { if (!/^[a-zA-Z0-9_-]+$/.test(req.params.groupId)) return res.status(400).json({ error: 'invalid groupId' }); try { - const result = await pool.query('SELECT id, name, created_at FROM together_groups WHERE id=$1', [req.params.groupId]); + const result = await pool.query('SELECT id, name, invite_code, created_at FROM together_groups WHERE id=$1', [req.params.groupId]); if (result.rows.length === 0) return res.status(404).json({ error: 'グループが見つかりません' }); res.json(result.rows[0]); } catch (e) {