Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAustin Schaffer <austin.schaffer@ryansg.com>2019-11-07 14:13:59 -0500
committerSchaffer, Austin <austin.schaffer@ryansg.com>2019-11-07 16:25:33 -0500
commit48aa315c2ac2b096b0ad0f23b9bfee12d7aa16b1 (patch)
tree02325b4a635c1bd701dceac963fcdde16b956388 /src
parent9f8fb90d0d2861dceacd384513409044251a06a8 (diff)
downloadliza-48aa315c2ac2b096b0ad0f23b9bfee12d7aa16b1.tar.gz
liza-48aa315c2ac2b096b0ad0f23b9bfee12d7aa16b1.tar.bz2
liza-48aa315c2ac2b096b0ad0f23b9bfee12d7aa16b1.zip
[DEV-6353] Get and set past rate data
Diffstat (limited to 'src')
-rw-r--r--src/server/DocumentServer.js4
-rw-r--r--src/server/Server.js3
-rw-r--r--src/server/daemon/controller.js2
3 files changed, 6 insertions, 3 deletions
diff --git a/src/server/DocumentServer.js b/src/server/DocumentServer.js
index c8abb4a..436fff5 100644
--- a/src/server/DocumentServer.js
+++ b/src/server/DocumentServer.js
@@ -44,7 +44,7 @@ const {
},
request: {
- DataProcessor,
+ DataProcessor: { DataProcessor },
JsonServerResponse,
ServerDataApiFactory,
},
@@ -89,7 +89,7 @@ module.exports = Class( 'DocumentServer',
logger,
enc_service,
- DataProcessor(
+ new DataProcessor(
bucket_filter,
( apis, request, quote ) => this._createDapiManager(
apis, request, origin_url, dapi_conf, quote, collection
diff --git a/src/server/Server.js b/src/server/Server.js
index 8a42ab0..8cbdcf7 100644
--- a/src/server/Server.js
+++ b/src/server/Server.js
@@ -49,7 +49,7 @@ const {
server: {
request: {
- DataProcessor,
+ DataProcessor: { DataProcessor },
},
encsvc: {
QuoteDataBucketCipher,
@@ -366,6 +366,7 @@ module.exports = Class( 'Server' )
.setCreditScoreRef( quote_data.creditScoreRef || 0 )
.setLastPremiumDate( quote_data.lastPremDate || 0 )
.setRatedDate( quote_data.initialRatedDate || 0 )
+ .setRatingData( quote_data.ratedata || {} )
.on( 'stepChange', function( step_id )
{
// save the quote state (we don't care if it succeeds or
diff --git a/src/server/daemon/controller.js b/src/server/daemon/controller.js
index 0f9cfa3..501618d 100644
--- a/src/server/daemon/controller.js
+++ b/src/server/daemon/controller.js
@@ -652,9 +652,11 @@ function createQuote( quote_id, program, request, callback, error_callback )
var bucket = QuoteDataBucket(),
metabucket = QuoteDataBucket(),
+ ratebucket = QuoteDataBucket(),
quote = Quote( quote_id, bucket );
quote.setMetabucket( metabucket );
+ quote.setRateBucket( ratebucket );
var controller = this;
return server.initQuote( quote, program, request,