Explorar el Código

fix: update when exists

ryanemax hace 8 meses
padre
commit
40bbf71ac8
Se han modificado 1 ficheros con 4 adiciones y 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")