Skip to content

Commit

Permalink
fix(badge): fixed badge description translation
Browse files Browse the repository at this point in the history
  • Loading branch information
kumfo committed Sep 4, 2024
1 parent 3c8aa03 commit fa50952
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/service/badge/badge_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ func (b *BadgeService) ListPaged(ctx context.Context, req *schema.GetBadgeListPa
var baseURL = ""
if siteErr != nil {
baseURL = ""
} else {
baseURL = general.SiteUrl
}
baseURL = general.SiteUrl

for i, badge := range badges {
resp[i] = &schema.GetBadgeListPagedResp{
Expand Down Expand Up @@ -268,8 +269,9 @@ func (b *BadgeService) GetBadgeInfo(ctx *gin.Context, id string, userID string)
var baseURL = ""
if siteErr != nil {
baseURL = ""
} else {
baseURL = general.SiteUrl
}
baseURL = general.SiteUrl

info = &schema.GetBadgeInfoResp{
ID: uid.EnShortID(badge.ID),
Expand Down

0 comments on commit fa50952

Please sign in to comment.