tango-app-api-task 3.2.1-hotfix-3 → 3.2.1-hotfix-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-task",
3
- "version": "3.2.1-hotfix-3",
3
+ "version": "3.2.1-hotfix-5",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3575,10 +3575,9 @@ export async function taskcreation( req, res ) {
3575
3575
  return res.sendError( 'please enter Valid AnswerType', 500 );
3576
3576
  }
3577
3577
  if ( inputBody?.answerType === 'multiplechoicesingle' || inputBody?.answerType === 'multiplechoicemultiple' ) {
3578
- if ( inputBody?.options && inputBody?.options.length > 0 ) {
3579
- let optionsResult = [];
3580
- let optionList = inputBody?.options.split( ',' );
3581
- for ( let option of optionList ) {
3578
+ if ( inputBody?.options && inputBody?.options.length > 1 ) {
3579
+ let optionsResult = []
3580
+ for ( let option of inputBody?.options ) {
3582
3581
  let optiondata = {
3583
3582
  'answer': '',
3584
3583
  'sopFlag': false,