Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -37,7 +37,7 @@ app.post('/board/:bid', async(req, res) => { | ... | @@ -37,7 +37,7 @@ app.post('/board/:bid', async(req, res) => { |
37 | res.status(404).send('그런 판은 우리에게 있을 수 없어.'); | 37 | res.status(404).send('그런 판은 우리에게 있을 수 없어.'); |
38 | } | 38 | } |
39 | let thread = await db.get('thread').insert({board: board._id, title: req.body.title, content: req.body.content, lastUpdated: Date.now(), count: 1}); | 39 | let thread = await db.get('thread').insert({board: board._id, title: req.body.title, content: req.body.content, lastUpdated: Date.now(), count: 1}); |
40 | - res.redirect('/thread/'+thread.insertedIds); | 40 | + res.redirect('/thread/' + thread._id); |
41 | }); | 41 | }); |
42 | 42 | ||
43 | app.get('/borad/:bid/thread/:tid', async(req, res) => { | 43 | app.get('/borad/:bid/thread/:tid', async(req, res) => { | ... | ... |
-
Please register or login to post a comment