Przeglądaj źródła

Deleted code for testing purpose

Taichi Masuyama 4 lat temu
rodzic
commit
2e281dfa18

+ 0 - 5
packages/app/src/client/services/SocketIoContainer.js

@@ -32,11 +32,6 @@ export default class SocketIoContainer extends Container {
       logger.error(error);
     });
 
-    // DELETE THIS THIS IS FOR ONLY TESTING PURPOSE SO FAR
-    this.socket.on('in_app_notification', (data) => {
-      console.log('Received data: ', data);
-    });
-
     this.state = {
     };
 

+ 0 - 5
packages/app/src/server/routes/apiv3/page.js

@@ -188,11 +188,6 @@ module.exports = (crowi) => {
   router.put('/likes', accessTokenParser, loginRequiredStrictly, csrf, validator.likes, apiV3FormValidator, async(req, res) => {
     const { pageId, bool: isLiked } = req.body;
 
-    // DELETE THIS THIS IS FOR ONLY TESTING PURPOSE
-    await socketIoService.getDefaultSocket().in(`user:${req.user._id}`).emit('in_app_notification', {
-      testData: 'Test data',
-    });
-
     let page;
     try {
       page = await Page.findByIdAndViewer(pageId, req.user);