소스 검색

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) {