Skip to content

Fix: 익명 로그인 생성 날짜와 최종 로그인 날짜 분리#16

Open
Glsme wants to merge 1 commit intodevelopfrom
fix/separate-createAt-lastSeenAt
Open

Fix: 익명 로그인 생성 날짜와 최종 로그인 날짜 분리#16
Glsme wants to merge 1 commit intodevelopfrom
fix/separate-createAt-lastSeenAt

Conversation

@Glsme
Copy link
Copy Markdown
Owner

@Glsme Glsme commented Mar 28, 2026

Summary

  • createAt(생성 날짜)과 lastSeenAt(최종 로그인 날짜)를 명확히 분리
  • createAt: 계정 생성 시 1회만 설정 (기존과 동일)
  • lastSeenAt: 앱 진입(foreground) 시마다 업데이트되도록 sceneWillEnterForeground에서 호출
  • CheckUserRegistrationUseCase에서 중복 updateLastSeenAt 호출 제거
  • UpdateLastSeenAtUseCase 신규 추가 및 DI 등록
  • .gitignore 추가 (.omc, .claude, DerivedData 등 불필요 파일 제외)

변경 파일

  • BanGiDa/UseCase/User/UpdateLastSeenAtUseCase.swift (신규)
  • BanGiDa/Application/SceneDelegate.swift
  • BanGiDa/Application/DIContainer.swift
  • BanGiDa/UseCase/User/CheckUserRegistrationUseCase.swift
  • .gitignore (신규)

Test plan

  • 최초 설치 후 Firestore에서 createAtlastSeenAt이 동일한 값으로 생성되는지 확인
  • 앱 종료 후 재실행 시 lastSeenAt만 업데이트되고 createAt은 변경되지 않는지 확인
  • 백그라운드 → 포그라운드 전환 시 lastSeenAt이 업데이트되는지 확인

🤖 Generated with Claude Code

- createAt: 계정 생성 시에만 설정 (변경 없음)
- lastSeenAt: 앱 진입(foreground) 시마다 업데이트하도록 변경
- UpdateLastSeenAtUseCase 추가 및 sceneWillEnterForeground에서 호출
- CheckUserRegistrationUseCase에서 중복 updateLastSeenAt 호출 제거
- .gitignore 추가

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant