I imagine it’s warning you to use the check() method to check that the parameters to the method are what you expected, such as a string or number or an object with the correct keys.
that is weird, I never run the check() function and haven’t seen that error.
The few methods I use only take certain inputs so I can explicitly check for those.
@cstrat I do not know if audit-argument-checks is a default package or not. If you do not want to check every params just remove audit-argument-checks package. See meteor doc about audit-argument-checks package
I don’t know if this code is from your real code, but it is really not secure. Just send the id of the item and then the server will fetch the full item from the DB. Otherwise the client can call the method and set the price to 0$.