The New York Mets ended their 12-game losing streak on Wednesday, with right-hander Luke Weaver closing the door to seal the deal.