What is the direct object of the sentence?

Gardeners must thank worms and bees for beautiful flowers.

Who must be thanked? That's the direct object. The object of the verb.