Skip to content

Commit

Permalink
fix: fix release history status
Browse files Browse the repository at this point in the history
  • Loading branch information
Han-Ya-Jun committed Sep 20, 2023
1 parent a9fae66 commit 9e5db07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dashboard/apigateway/apigateway/biz/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def get_status(last_event: PublishEvent):
return ReleaseHistoryStatusEnum.DOING.value

# 如已经结束
if last_event.status == ReleaseHistoryStatusEnum.SUCCESS.value:
if last_event.status == PublishEventStatusEnum.SUCCESS.value:
return ReleaseHistoryStatusEnum.SUCCESS.value

if last_event.status == ReleaseHistoryStatusEnum.FAILURE.value:
if last_event.status == PublishEventStatusEnum.FAILURE.value:
return ReleaseHistoryStatusEnum.FAILURE.value

return ReleaseHistoryStatusEnum.DOING.value
Expand Down

0 comments on commit 9e5db07

Please sign in to comment.