Skip to content

fix(project): 프로젝트 저장 안 되는 문제 수정 - #40

Merged
lnu8926-web merged 4 commits into
mainfrom
fix/issue-39-project-save
May 11, 2026
Merged

fix(project): 프로젝트 저장 안 되는 문제 수정#40
lnu8926-web merged 4 commits into
mainfrom
fix/issue-39-project-save

Conversation

@lnu8926-web

Copy link
Copy Markdown
Owner

Summary

  • supabase (anon key) → supabaseAdmin (service role key) 교체로 RLS 우회
  • getUnifiedAuthUser()로 인증 체크 복원
  • GET 쿼리 체이닝 버그 수정 (page 파라미터 처리)
  • POST에 user_id: auth.userId 추가

Test plan

  • 프로젝트 생성 → Supabase projects 테이블에 레코드 확인
  • 프로젝트 수정 → 변경사항 저장 확인
  • 비로그인 상태에서 요청 시 401 반환 확인

Closes #39

🤖 Generated with Claude Code

- supabase(anon key) → supabaseAdmin(service role)으로 교체해 RLS 차단 해결
- 모든 메서드에 getUnifiedAuthUser 인증 복구
- POST에 user_id 포함 (서버 세션에서 추출)
- GET 쿼리 체이닝 버그 수정 (order/range 재할당)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented May 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
next_taskry Error Error May 11, 2026 1:49pm

- 제출 전 projectName/type/status 유효성 검사 추가
- API POST에서 빈 문자열을 enum 컬럼에 전송하지 않도록 수정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- projects/[id]: getUnifiedAuthUser() 인증 체크 추가
- projectMembers: supabase(anon) → supabaseAdmin 전환
- projectMembers: 주석 처리된 인증 체크 → getUnifiedAuthUser() 적용
- projectMembers: PUT 응답 누락 제거, 사용하지 않는 any 타입 제거

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
...project 스프레드 제거, 각 필드에 ?? "" 적용

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lnu8926-web
lnu8926-web merged commit ef8a99f into main May 11, 2026
1 of 3 checks passed
@lnu8926-web
lnu8926-web deleted the fix/issue-39-project-save branch May 11, 2026 14:00
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.

[Bug] 프로젝트 데이터 Supabase 저장 안 됨 — 타입/테이블/RLS 전체 점검 필요

1 participant