Browse Source

fix: update when exists

ryanemax 8 months ago
parent
commit
40bbf71ac8
1 changed files with 4 additions and 0 deletions
  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 
     SET 
     "username" = excluded."username",
     "username" = excluded."username",
     "updatedAt"=excluded."updatedAt";
     "updatedAt"=excluded."updatedAt";
+    "lastIP"=excluded."lastIP";
+    "lastLogin"=excluded."lastLogin";
+    "userSourceType"=excluded."userSourceType";
+    "loginsCount"=excluded."loginsCount";
 
 
 
 
     INSERT INTO "_Session" ("objectId", "user", "sessionToken","expiresAt", "createdAt")
     INSERT INTO "_Session" ("objectId", "user", "sessionToken","expiresAt", "createdAt")