Browse Source

Remove superfluous field

sbkwgh 8 năm trước cách đây
mục cha
commit
69dbffe911
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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) {