Skip to content

Commit

Permalink
Refactor: set isEligible field true when user is admin in globalState…
Browse files Browse the repository at this point in the history
… api
  • Loading branch information
kmc7468 committed Feb 23, 2024
1 parent a52f518 commit c310f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lottery/services/globalState.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getUserGlobalStateHandler = async (req, res) => {
if (!eventStatus)
return res.json({
isAgreeOnTermsOfEvent: false,
isEligible: checkIsUserEligible(user),
isEligible: checkIsUserEligible(user) || !!user?.isAdmin, // 테스트를 위해 관리자인 경우 true로 설정합니다. 하지만 관리자이더라도 이벤트에 참여할 수 없습니다.
completedQuests: [],
creditAmount: 0,
group: 0,
Expand Down

0 comments on commit c310f2b

Please sign in to comment.