Browse Source

fix: update stale account url/email on re-login (#18426)

Kit Langton 5 tháng trước cách đây
mục cha
commit
24f9df5463
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      packages/opencode/src/account/repo.ts

+ 2 - 0
packages/opencode/src/account/repo.ts

@@ -136,6 +136,8 @@ export class AccountRepo extends ServiceMap.Service<AccountRepo, AccountRepo.Ser
             .onConflictDoUpdate({
               target: AccountTable.id,
               set: {
+                email: input.email,
+                url: input.url,
                 access_token: input.accessToken,
                 refresh_token: input.refreshToken,
                 token_expiry: input.expiry,