Allow only https

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-13 15:54:05 +01:00
parent c163ca9bf0
commit c81205aaa1
3 changed files with 8 additions and 5 deletions

View File

@@ -323,7 +323,10 @@ func (s *Sender) recordEvent(
}
err := s.pg.WithConn(ctx, func(conn pg.Conn) error {
return event.Insert(ctx, conn, scope)
if err := event.Insert(ctx, conn, scope); err != nil {
return fmt.Errorf("cannot insert webhook event: %w", err)
}
return nil
})
if err != nil {
s.logger.ErrorCtx(ctx, "cannot insert webhook event",