new added field...total_questionas_answered

This commit is contained in:
Josh Burman 2019-03-26 18:57:55 -04:00
parent e16419b336
commit 52b1635cbe
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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',

View File

@ -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(),