From 5b90f465f2994b4e7fa387f051a7d4c15f6757a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?scnoh=28=EB=85=B8=EC=8A=B9=EC=B2=A0=29?= Date: Wed, 31 Aug 2022 10:54:11 +0900 Subject: [PATCH] . --- src/modules/control/gp/sagas/controlGpSaga.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/modules/control/gp/sagas/controlGpSaga.ts b/src/modules/control/gp/sagas/controlGpSaga.ts index bccf8a2..2ec1f75 100644 --- a/src/modules/control/gp/sagas/controlGpSaga.ts +++ b/src/modules/control/gp/sagas/controlGpSaga.ts @@ -20,21 +20,21 @@ function* getControlGpSaga( let gpsData: ControlGpData[] = []; - if (controlGroupAuthInfo.length > 0) { - controlGroupAuthInfo.forEach((auth) => { - if (auth.groupAuthCd === 'CREATER' || auth.groupAuthCd === 'ADMIN') { - if (gpsData.length > 0) return false; + // if (controlGroupAuthInfo.length > 0) { + // controlGroupAuthInfo.forEach((auth) => { + // if (auth.groupAuthCd === 'CREATER' || auth.groupAuthCd === 'ADMIN') { + // if (gpsData.length > 0) return false; - gpsData = data.filter(gps => auth.idntfNum === gps.objectId); - } + // gpsData = data.filter(gps => auth.idntfNum === gps.objectId); + // } - if (auth.groupAuthCd === 'USER') { - if (gpsData.length > 0) return false; + // if (auth.groupAuthCd === 'USER') { + // if (gpsData.length > 0) return false; - gpsData.filter(gps => auth.createUserId && auth.idntfNum === gps.objectId); - } - }); - } + // gpsData.filter(gps => auth.createUserId && auth.idntfNum === gps.objectId); + // } + // }); + // } console.log('gps data >>>> ', data);