소스 검색

fix: update when exists

ryanemax 8 달 전
부모
커밋
40bbf71ac8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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")