func (r *GormCommentRevisionRepository) List(ctx context.Context, commentID uuid.UUID) ([]Revision, error) {
	log.Debug(nil, map[string]interface{}{}, "List all revisions for comment with ID=%v", commentID.String())
	revisions := make([]Revision, 0)
	if err := r.db.Where("comment_id = ?", commentID.String()).Order("revision_time asc").Find(&revisions).Error; err != nil {
		return nil, errors.NewInternalError(fmt.Sprintf("failed to retrieve comment revisions: %s", err.Error()))
	}
	return revisions, nil
}
// List retrieves all revisions for a given comment
List retrieves all revisions for a given comment
// List retrieves all revisions for a given comment
func (r *GormCommentRevisionRepository) List(ctx context.Context, commentID uuid.UUID) ([]Revision, error) {
	log.Debug(nil, map[string]interface{}{}, "List all revisions for comment with ID=%v", commentID.String())
	revisions := make([]Revision, 0)
	if err := r.db.Where("comment_id = ?", commentID.String()).Order("revision_time asc").Find(&revisions).Error; err != nil {
		return nil, errors.NewInternalError(fmt.Sprintf("failed to retrieve comment revisions: %s", err.Error()))
	}
	return revisions, nil
}
func ( r * GormCommentRevisionRepository ) List ( ctx context . Context , commentID uuid . UUID ) ( [ ] Revision , error ) { log . Debug ( nil , map [ string ] interface { } { } , " " , commentID . String ( ) ) revisions := make ( [ ] Revision , 0 ) if err := r . db . Where ( " " , commentID . String ( ) ) . Order ( " " ) . Find ( & revisions ) . Error ; err != nil { return nil , errors . NewInternalError ( fmt . Sprintf ( " " , err . Error ( ) ) ) } return revisions , nil }
List retrieves all revisions for a given comment
List retrieves all revisions for a given comment