func (c *Connection) UpdateSentAt(ctx context.Context, video *YoutubeVideo) error {
	_, err := c.DB.ExecContext(ctx, `UPDATE yt_videos SET last_sent_at = $1 WHERE video_url = $2`, time.Now(), video.URL)
	if err != nil {
		return fmt.Errorf("err: %w", err)
	}
	return nil
}
// UpdateSentAt updates the last sent time for a video.
UpdateSentAt updates the last sent time for a video.
// UpdateSentAt updates the last sent time for a video .
func (c *Connection) UpdateSentAt(ctx context.Context, video *YoutubeVideo) error {
	_, err := c.DB.ExecContext(ctx, `UPDATE yt_videos SET last_sent_at = $1 WHERE video_url = $2`, time.Now(), video.URL)
	if err != nil {
		return fmt.Errorf("err: %w", err)
	}
	return nil
}
func ( c * Connection ) UpdateSentAt ( ctx context . Context , video * YoutubeVideo ) error { _ , err := c . DB . ExecContext ( ctx , `UPDATE yt_videos SET last_sent_at = $1 WHERE video_url = $2` , time . Now ( ) , video . URL ) if err != nil { return fmt . Errorf ( " " , err ) } return nil }
UpdateSentAt updates the last sent time for a video.
UpdateSentAt updates the last sent time for a video .