Browse Source

set a default and goes boom 🤦‍♂️

Grant Limberg 4 years ago
parent
commit
81fda3f5b8
1 changed files with 4 additions and 2 deletions
  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) {