From 6479f35c26aea9dc7f752eab422b31c63ba68d4b Mon Sep 17 00:00:00 2001 From: badaev Date: Wed, 17 Feb 2021 16:08:59 +0800 Subject: [PATCH] =?UTF-8?q?#953=20[EDIT]=20=D0=A0=D0=B5=D1=84=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=87=D0=B5=D0=B9=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/working-group/client/views/lib.js | 59 --------------------------- 1 file changed, 59 deletions(-) diff --git a/app/working-group/client/views/lib.js b/app/working-group/client/views/lib.js index 73046dd3d419..5f8ad26b0a12 100644 --- a/app/working-group/client/views/lib.js +++ b/app/working-group/client/views/lib.js @@ -50,62 +50,3 @@ export function createWorkingGroupCompositionData(title, previousData) { return workingGroupCompositionData; } - -export function validateWorkingGroupRequestData(workingGroupRequestData) { - const errors = []; - - if (!workingGroupRequestData.number) { - errors.push('number'); - } - - if (!workingGroupRequestData.desc) { - errors.push('desc'); - } - - return errors; -} - -export function createWorkingGroupRequestData(number, desc, previousData) { - const workingGroupRequestData = { - }; - - if (previousData) { - workingGroupRequestData._id = previousData._id; - } - - workingGroupRequestData.number = number; - workingGroupRequestData.desc = desc; - - return workingGroupRequestData; -} - -export function validateWorkingGroupRequestMessageData(workingGroupRequestData) { - const errors = []; - - if (!workingGroupRequestData.description) { - errors.push('description'); - } - - if (!workingGroupRequestData.number) { - errors.push('number'); - } - - return errors; -} - -export function createWorkingGroupRequestMessageData(description, number, previousData) { - const workingGroupRequestData = { - }; - - if (previousData) { - workingGroupRequestData._id = previousData._id; - workingGroupRequestData.ts = previousData.ts; - workingGroupRequestData.inum = previousData.inum; - workingGroupRequestData.answers = previousData.answers; - } - - workingGroupRequestData.description = description; - workingGroupRequestData.number = number; - - return workingGroupRequestData; -}