From 81fda3f5b8fbaa1b028338265b8b01bb0a8bcf25 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 2 Jun 2021 15:07:53 -0700 Subject: [PATCH] =?UTF-8?q?set=20a=20default=20and=20goes=20boom=20?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/PostgreSQL.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index e462fe3ea..2c3200bc5 100644 --- a/controller/PostgreSQL.cpp +++ b/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) {