瀏覽代碼

Remove superfluous field

sbkwgh 8 年之前
父節點
當前提交
69dbffe911
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      routes/post.js

+ 1 - 2
routes/post.js

@@ -151,8 +151,7 @@ router.post('/', async (req, res) => {
 		}))
 
 		req.app.get('io').to('thread/' + thread.id).emit('new post', {
-			postNumber: thread.postsCount,
-			id: post.id
+			postNumber: thread.postsCount
 		})
 	} catch (e) {
 		if(e === Errors.VALIDATION_ERROR) {