Parcourir la source

Remove superfluous field

sbkwgh il y a 8 ans
Parent
commit
69dbffe911
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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) {