Updated Dependencies; Added webp/avif support; adjust buzzer activation timings; always show question to host
This commit is contained in:
1 parent
e0280bafe6
commit
9d38272d1b
15 files changed
+2618
-4865
No files matched your search
@@ -93,7 +93,7 @@ exports.checkPlayerAcceptAnswers = ( playerId ) => {
|
||||
*/
|
||||
exports.checkPlayerAcceptAnswersAndSetAccepting = ( playerId, canAcceptAfter ) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
PlayerModel.findByIdAndUpdate( playerId, { acceptAnswers: canAcceptAfter }, { new: false } )
|
||||
PlayerModel.findByIdAndUpdate( playerId, { acceptAnswers: canAcceptAfter }, { returnDocument: 'before' } )
|
||||
.then( ( player ) => {
|
||||
if( player ){
|
||||
resolve( player.acceptAnswers );
|
||||
|
||||
Reference in new issue
Block a user