Did Trump submit to Turkey's wishes?

Here's another round of America's flip flops in Foreign policy. Donald Trump tweeted just before the announcement of the deal and Turkey said it got what it wanted.