kookmin-sw / capstone-2023-05

capstone-2023-05 created by GitHub Classroom
https://capstone-2023-05.vercel.app
0 stars 0 forks source link

createBattle Duplicate key crash #77

Closed seungholee-dev closed 1 year ago

seungholee-dev commented 1 year ago

테스트 링크

wss://rk07acynb6.execute-api.ap-northeast-2.amazonaws.com/dev

액션 형식

{
  "action": "createBattle",
  "ownerId": "joon@kookmin.ac.kr",
  "teamNameA": "Game",
  "teamNameB": "Sport",
  "title": "Test",
  "description": "Testing Battle",
  "refreshPeriod": 10,
  "maxNoOfRefresh": 5,
  "maxNoOfRounds": 3,
  "maxNoOfVotes": 3,
  "maxNoOfOpinion": 3
}

결과

{
    "message": "Failed",
    "data": {
        "e": "duplicate key value violates unique constraint \"pk_team_id\"\nDETAIL:  Key (\"teamId\")=(2) already exists.\n"
    }
}
seungholee-dev commented 1 year ago

@Jaewook-Lee 혹시 저희 최신 dev로 업데이트 된 것이 맞을까용?! 로컬에서는 정상적으로 작동이 되어서요 ㅠㅠ

sls deploy로 배포하셨다고 이해하면 될까용?!

Jaewook-Lee commented 1 year ago

네. sls deploy를 통해 오늘 오전 10시 20분 경의 dev 브랜치 내용으로 배포 테스트를 했어요.

seungholee-dev commented 1 year ago

확인완료 :)