From 52b1635cbed8f5a2841abdf67fcd40b94bb9fc21 Mon Sep 17 00:00:00 2001 From: Josh Burman Date: Tue, 26 Mar 2019 18:57:55 -0400 Subject: [PATCH] new added field...total_questionas_answered --- README.md | 2 +- src/config/app.ts | 2 +- src/messageManager.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 59ab83d..9e2e956 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# BRAID v1.0.5 +# BRAID v1.0.8 > Websocket server for the Measure platform [![Build Status](https://semaphoreci.com/api/v1/projects/7767f0f3-4da6-4c84-9167-4db5402a3262/2573412/badge.svg)](https://semaphoreci.com/yardstick/braid) diff --git a/src/config/app.ts b/src/config/app.ts index e2cafc1..f2887a5 100644 --- a/src/config/app.ts +++ b/src/config/app.ts @@ -1,5 +1,5 @@ module.exports = { - version : '1.0.5', + version : '1.0.8', whitelist : (process.env.WHITELIST || "http://admin.localhost").split(','), secret : process.env.SECRET || "test", devToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImNsaWVudCI6InRlc3QiLCJjbGllbnRfdHlwZSI6InNpdGUiLCJ1c2VyX3R5cGUiOiJ1c2VyIiwidXNlcl9pZCI6MjAwLCJjaGFubmVsIjoidGVzdF9jaGFubmVsIn0sImF1ZCI6ImludGVybmFsIiwiaXNzIjoiWWFyZHN0aWNrIFNvZnR3YXJlIiwic3ViIjoiQnJhaWQgSldUIn0.5KNCov_EW1cycT4Ay0oSvk4Z4PHFedd3bWOyqkHHTBQ', diff --git a/src/messageManager.ts b/src/messageManager.ts index 2f1c0ed..b04abcb 100644 --- a/src/messageManager.ts +++ b/src/messageManager.ts @@ -7,6 +7,7 @@ let schema = { message_type: Joi.string().valid(app.messageTypes).insensitive().required(), current_index: Joi.number().integer(), total_questions: Joi.number().integer(), + total_questions_answered: Joi.number().integer(), time_elapsed: Joi.number(), time_left: Joi.any(), status: Joi.string(),