Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-10-24 14:34:11 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-10-29 13:36:55 -0400
commit1aa69c2a56fe2ad46dfdf10061b9726c18f0e8d8 (patch)
tree747d9f3fc1df166cc9b5f7874e959f35b6b5e7e9 /src
parentcffd9ddeb0143d027ed7407a819552881b0fefb3 (diff)
downloadliza-1aa69c2a56fe2ad46dfdf10061b9726c18f0e8d8.tar.gz
liza-1aa69c2a56fe2ad46dfdf10061b9726c18f0e8d8.tar.bz2
liza-1aa69c2a56fe2ad46dfdf10061b9726c18f0e8d8.zip
RatingService: Save rating data to separate field (ratedata)
This adds ratedata to the quote collection. We use the existing saveQuote method so that this operation is atomic. We're also continuing to save to the bucket for now so as not to break existing code, but the intent in the future will be to remove all but necessary data that should be exposed to the client.
Diffstat (limited to 'src')
-rw-r--r--src/server/service/RatingService.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/service/RatingService.ts b/src/server/service/RatingService.ts
index 327e790..e811075 100644
--- a/src/server/service/RatingService.ts
+++ b/src/server/service/RatingService.ts
@@ -277,7 +277,9 @@ export class RatingService
// save the last prem status (we pass an empty object as the save
// data argument to ensure that we do not save the actual bucket
// data, which may cause a race condition with the below merge call)
- this._dao.saveQuote( quote, c, c, {} );
+ this._dao.saveQuote( quote, c, c, {
+ ratedata: data,
+ } );
}
else
{