Explorar o código

fix: update when exists

ryanemax hai 8 meses
pai
achega
40bbf71ac8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      server/cloud/authing/func-authing-session-sync.js

+ 4 - 0
server/cloud/authing/func-authing-session-sync.js

@@ -55,6 +55,10 @@ async function syncSessionWithIdToken(token){
     SET 
     "username" = excluded."username",
     "updatedAt"=excluded."updatedAt";
+    "lastIP"=excluded."lastIP";
+    "lastLogin"=excluded."lastLogin";
+    "userSourceType"=excluded."userSourceType";
+    "loginsCount"=excluded."loginsCount";
 
 
     INSERT INTO "_Session" ("objectId", "user", "sessionToken","expiresAt", "createdAt")