Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-14 11:47:50 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-14 11:47:50 -0400
commit460a5337778ee05112594cbb7dea5fbc9e24d754 (patch)
tree51a61f5b76354d8a4549637ff0e9a5ca91b5bfb7
parentf83dfd0027720bbd86b807e533309c981dcd14db (diff)
downloadliza-460a5337778ee05112594cbb7dea5fbc9e24d754.tar.gz
liza-460a5337778ee05112594cbb7dea5fbc9e24d754.tar.bz2
liza-460a5337778ee05112594cbb7dea5fbc9e24d754.zip
MongoServerDao: Always clear quicksave datav3.5.2
quicksave data wouldn't always be cleared on save, meaning it might not be cleared until the next _empty_ quicksave from the client. * src/server/db/MongoServerDao.js (saveQuote): Always clear quicksave.
-rw-r--r--src/server/db/MongoServerDao.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/server/db/MongoServerDao.js b/src/server/db/MongoServerDao.js
index 16b895e..48d12df 100644
--- a/src/server/db/MongoServerDao.js
+++ b/src/server/db/MongoServerDao.js
@@ -311,12 +311,10 @@ module.exports = Class( 'MongoServerDao' )
// full save will include all metadata
save_data.meta = quote.getMetabucket().getData();
}
- else if ( save_data.data !== undefined )
- {
- // when we update the quote data, clear quick save data (this data
- // should take precedence)
- save_data.quicksave = {};
- }
+
+ // when we update the quote data, clear quick save data (this data
+ // should take precedence)
+ save_data.quicksave = {};
var id = quote.getId();