Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: getTokenById return token nil, make panic #1728

Merged
merged 2 commits into from
Sep 21, 2024

Conversation

qinguoyi
Copy link
Contributor

when id=0, getTokenById return token nil, make panic

image

@songquanpeng songquanpeng changed the title fix:getTokenById return token nil, make panic fix: getTokenById return token nil, make panic Sep 21, 2024
@songquanpeng songquanpeng merged commit 3a27c90 into songquanpeng:main Sep 21, 2024
1 of 2 checks passed
@songquanpeng
Copy link
Owner

Thx~

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 1.29%. Comparing base (f977469) to head (a83fbe3).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
controller/billing.go 0.00% 4 Missing ⚠️
model/token.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1728      +/-   ##
========================================
- Coverage   1.30%   1.29%   -0.01%     
========================================
  Files        144     144              
  Lines      10153   10159       +6     
========================================
  Hits         132     132              
- Misses     10007   10013       +6     
  Partials      14      14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants