Update Circle model to include webhook URL field

This commit is contained in:
Mo Tarbin 2025-02-11 22:02:15 -05:00
parent b1036730c4
commit 3fb83b0610
4 changed files with 59 additions and 9 deletions

View file

@ -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
}