1
0
Fork 0

MongoServerDao: Always clear quicksave data

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.
master
Mike Gerwitz 2018-03-14 11:47:50 -04:00
parent f83dfd0027
commit 460a533777
1 changed files with 4 additions and 6 deletions

View File

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