mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-06 19:08:06 +08:00
made sure to use ===
This commit is contained in:
parent
c100c99d01
commit
a6ab03c1ad
1 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ const admin = require('firebase-admin');
|
|||
|
||||
let key = "./serviceAccountKey.json";
|
||||
|
||||
if(process.env.GCLOUD_PROJECT == "monkey-type"){
|
||||
if(process.env.GCLOUD_PROJECT === "monkey-type"){
|
||||
key = "./serviceAccountKey_live.json"
|
||||
}
|
||||
|
||||
|
|
@ -222,9 +222,9 @@ function checkIfPB(uid,obj){
|
|||
let found = false;
|
||||
try{
|
||||
pbs[obj.mode][obj.mode2].forEach(pb => {
|
||||
if( pb.punctuation == obj.punctuation &&
|
||||
pb.difficulty == obj.difficulty &&
|
||||
pb.language == obj.language){
|
||||
if( pb.punctuation === obj.punctuation &&
|
||||
pb.difficulty === obj.difficulty &&
|
||||
pb.language === obj.language){
|
||||
//entry like this already exists, compare wpm
|
||||
found = true;
|
||||
if(pb.wpm < obj.wpm){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue