Skip to content

Commit

Permalink
fix(badge): resolve id when set badge object id
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Sep 5, 2024
1 parent df3164a commit 465f4bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/schema/event_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ func (e *EventMsg) CID(comment, userID string) *EventMsg {

// TID get trigger object id
func (e *EventMsg) TID(triggerObjectID string) *EventMsg {
e.TriggerObjectID = triggerObjectID
if len(triggerObjectID) > 0 {
e.TriggerObjectID = uid.DeShortID(triggerObjectID)
}
return e
}

Expand Down

0 comments on commit 465f4bf

Please sign in to comment.