Update Circle model to include webhook URL field
This commit is contained in:
parent
b1036730c4
commit
3fb83b0610
4 changed files with 59 additions and 9 deletions
|
@ -167,3 +167,7 @@ func (r *CircleRepository) RedeemPoints(c context.Context, circleID int, userID
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *CircleRepository) SetWebhookURL(c context.Context, circleID int, webhookURL *string) error {
|
||||
return r.db.WithContext(c).Model(&cModel.Circle{}).Where("id = ?", circleID).Update("webhook_url", webhookURL).Error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue