According to Catholicism, did Jesus whip the people selling cattle in the Temple? We read at Jn 2:13-15 (KJV)

And the Jews' passover was at hand, and Jesus went up to Jerusalem.


And found in the temple those that sold oxen and sheep and doves, and the changers of money sitting:


And when he had made a scourge of small cords, he drove them all out of the temple, and the sheep, and the oxen; and poured out the changers' money, and overthrew the tables

But in some other versions we find a slightly different translation, e.g. in NRSVCE:

The Passover of the Jews was near, and Jesus went up to Jerusalem.   In the temple he found people selling cattle, sheep, and doves, and the money changers seated at their tables.   Making a whip of cords, he drove all of them out of the temple, both the sheep and the cattle. He also poured out the coins of the money changers and overturned their tables.

While KJV states that Jesus directed his whip on people and cattle alike, NRSVCE, for instance, gives the impression that he used the whip to drive the cattle out.  And nobody  questioned Jesus' authority to use force in the Temple,  implying that in case he had whipped the people, they would have definitely revolted. But, many
pictures depicting the event show Jesus directing his whip on the sellers of cattle rather than on the cattle.My question therefore is: Did Jesus in fact whip the people selling cattle in the Temple? How  do the teachings of Catholic Church explain the event?
John 2:15 And when he had made, as it were, a scourge [whip] of little cords, he drove them all out of the temple, the sheep also and the oxen: and the money of the changers he poured out, and the tables he overthrew.

Note that Matthew 21:12 and the other Synoptics don't mention the scourge/whip (σχοινίον).
St. Augustine (as quoted by St. Thomas Aquinas in his Catena Aurea on Jn. 2) says He literally scourged/whipped them:

Our Lord intended a meaning to be seen in His making a scourge (flagellum) of small cords, and then He scourged (flagellavit) those who were carrying on the merchandise in the temple. Every one by his sins twists for himself a cord, in that he goes on adding sin to sin.

St. Cyril's Commentary on John 2 compares the Jews' folly to slaves deserving corporal punishment:

Reasonably is the Saviour indignant at the folly of the Jews. […] He shows His emotion not by mere words, but with stripes and a scourge thrusts He them forth of the sacred precincts, justly devising for them the punishment befitting slaves; for they would not receive the Son Who through faith maketh free.