NBC  has renewed its Sony Pictures TV drama series “The Night Shift” for a second season.

The Peacock has given the greenlight to 14 new episodes of the medical drama. “The Night Shift” opened in May to a solid 7.8 million, and became the third most-watched drama on NBC this season among total viewers, behind only “Blacklist” and “Chicago Fire.” It was number five in the 18-49 demo for NBC, behind “Blacklist,” “Chicago Fire,” “Law & Order: SVU” and “Chicago PD.”

Airing after “America’s Got Talent” on Tuesdays, it culled consistent ratings for NBC, becoming the number one new scripted series on network and cable this summer in ages 18-49. It also marks the most-watched summer drama for NBC in total viewers in 14 years, averaging 6.9 million viewing per episode. The 14-episode order has six more episodes than season one did.

The one-hour series comes from creators Gabe Sachs and Jeff Judah and centers on the medical staff of San Antonio Memorial Hospital who work the night shift. Eoin Macken, Jill Flint, Freddy Rodriguez, Daniella Alonso, Ken Leung, Robert Bailey Jr., Jeananne Goossen, JR Lemon, Brendan Fehr and Scott Wolf star in the ensemble cast.

The news of the renewal comes just a day after SPTV announced a big save: the greenlight of a sixth season of “Community” after it was canceled by NBC in May, with the cult sitcom moving to digital platform Yahoo Screen after an aggressive push from Sony.