The fresh ground coffee could likely cause a problem. It is an unfortunately common occurrence for indoor plants to have drinks food, etc. poured or dropped on them. Coffee is very common, and often on purpose. Many people believe that the plant will process the foreign material just fine, and in the case of coffee, that it will fertilize the plant. If this was an outdoor plant that has the assistance of nature all of that may be true, not so for an indoor plant. What ends up happening to a houseplant is a concentrated build-up of the foreign organic material, leaving the plant to stew in something that it can not process, and a substance that can go rancid rich with aggressive bacteria to boot. This often leads to root damage, and can kill the plant.
If possible try to rinse the soil through thoroughly, and repeatedly. It may be best to water in a way that the plant is not allowed to have any standing water in the liner. Adding fresh soil can also help to rebalance. Move the plant, so no more grounds get into it.