From 3804c8b57e296279094c01cbd1700a66285bca3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 2 Mar 2023 10:05:41 -0300 Subject: [PATCH] replace lodash/fp --- .../imports/ui/components/breakout-room/service.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/breakout-room/service.js b/bigbluebutton-html5/imports/ui/components/breakout-room/service.js index 32423d7688..541775c51b 100644 --- a/bigbluebutton-html5/imports/ui/components/breakout-room/service.js +++ b/bigbluebutton-html5/imports/ui/components/breakout-room/service.js @@ -4,7 +4,6 @@ import { makeCall } from '/imports/ui/services/api'; import Auth from '/imports/ui/services/auth'; import Users from '/imports/api/users'; import UserListService from '/imports/ui/components/user-list/service'; -import fp from 'lodash/fp'; import UsersPersistentData from '/imports/api/users-persistent-data'; import { UploadingPresentations } from '/imports/api/presentations'; @@ -175,11 +174,11 @@ const getLastBreakoutInserted = (breakoutURLArray) => breakoutURLArray.sort((a, return a.breakoutUrlData.insertedTime - b.breakoutUrlData.insertedTime; }).pop(); -const getLastBreakoutByUserId = (userId) => fp.pipe( - getBreakoutByUserId, - getWithBreakoutUrlData(userId), - getLastBreakoutInserted, -)(userId); +const getLastBreakoutByUserId = (userId) => { + const breakout = getBreakoutByUserId(userId); + const url = getWithBreakoutUrlData(userId)(breakout); + return getLastBreakoutInserted(url); +} const getBreakouts = () => Breakouts.find({}, { sort: { sequence: 1 } }).fetch();