INDIANAPOLIS — Just two years ago, the Detroit Pistons set an NBA record for the consecutive losses in a single NBA season with 28.Now, they seemingly can’t lose.The Pistons tied a team record Monday night with their 13th straight victory, beating the Indiana Pacers 122-117. They matched winning streaks by their 1990 and 2004 NBA championship teams and improved to 15-2.“It’s amazing,” Pistons star Cade Cunningham said. “We play for the Detroit Pistons, man. A historic franchise. So to be able to make history for a historic franchise like this — it’s special.”It’s a stunning turnaround for a franchise that started the 2023-24 season with a 3-36 record and finished with 14 wins. The Pistons have a chance to surpass all the great Detroit teams, including the “Bad Boys” from back in the day. And it’s only fitting that these Pistons, like those old Isiah Thomas-led teams, will have Boston standing in the way of reaching a significant goal. Detroit visits the Celtics on Wednesday night in an NBA Cup game.Detroit had to get through another old rival, the scrappy, injury-plagued Pacers on Monday, to match the record. Indiana showed that toughness of a team that played in the NBA Finals just a few months ago, but still fell to 2-15. Cunningham, the former No. 1 overall pick, has spearheaded Detroit’s run to the top of the Eastern Conference standings. He had 24 points, 11 rebounds and six assists …