CHARLESTON, W.Va. (AP) — The family of West Virginia Gov.

Jim Justice has reached an agreement with a credit collection company to avoid the foreclosure of their historic hotel as he runs for U.S. Senate, the resort announced Thursday.

The Republican governor's family was set to appear in court Friday asking a judge to halt the auction of The Greenbrier, which had been scheduled for Tuesday. Whether that hearing is still planned is unclear. The hotel came under threat of auction after JPMorgan Chase sold a longstanding loan taken out by the governor to a credit collection company, McCormick 101 — a subsidiary of Beltway Capital — which declared it to be in default.

In a statement, the Justice family said it had reached an agreement with Beltway Capital to “receive a specific amount to be paid in full by October 24, 2024.” The family said it had already secured the money, although the Justices did not specify the amount. “Under the agreement, Beltway Capital will Beltway reserves its rights if the Justice family fails to perform,” the statement reads.

A message left with Beltway Capital wasn’t immediately returned Thursday. The auction, which had been set to occur at a courthouse Tuesday in the small city of Lewisburg, involved 60.5 acres, including the hotel and parking lot.

Justice family attorneys filed a motion this week for a preliminary injunction to try to halt the auction of The Greenbrier. They claimed that a 2014 deed of trust approved by the governor.