@@ -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 = {
};
@@ -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);