¿Quien hizo estas tortillas ricas?
¿ Quien cocino estas tortillas ricas?
Both are saying who made the tortillas.
I did this before is “La pasé genial”
Direct object pronouns are used to replace direct object nouns, but indirect object pronouns are used to replace nouns that act as indirect objects. Also, indirect object pronouns answer to questions such as: to whom? or for whom? about the verb, but direct object pronouns answer to questions such as: whom? or what? about the verb
Azul