Most dining for miles restaurants are program agnostic, although not all.
In response to your question, you will receive miles in whichever program your card is registered at the time of processing. You may be a member of both American and United but your credit card can only be linked to one program at a time. Without making further changes, you are set to earn miles in the plan you registered your card in most recently.