Sfoglia il codice sorgente

fix: update when exists

ryanemax 8 mesi fa
parent
commit
40bbf71ac8
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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")