Procházet zdrojové kódy

set a default and goes boom 🤦‍♂️

Grant Limberg před 4 roky
rodič
revize
81fda3f5b8
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      controller/PostgreSQL.cpp

+ 4 - 2
controller/PostgreSQL.cpp

@@ -369,10 +369,12 @@ void PostgreSQL::updateMemberOnLoad(const uint64_t networkId, const uint64_t mem
 
 				member["authenticationExpiryTime"] = authentication_expiry_time;
 				member["authenticationURL"] = authenticationURL;
-			}
+			} 
+		} else {
+			member["authenticationExpiryTime"] = -1LL;
+			member["authenticationURL"] = "";
 		}
 
-		w.commit();
 		_pool->unborrow(c);
 
 	} catch (sw::redis::Error &e) {