Before we get down to looking at your code though can you wrap it in triple backticks to improve formatting and allow our eyes the courtesy of syntax highlighting?
```
const message = 'your code here';
```
Now, off the top of my head I’ve picked out that you are passing an object to Meteor.publish which takes a string as the first parameter, and callback function as the second.
Meteor.publish('testViewUSA.all', function(_id) {
isUserLoggedIn(this.userId); //totally unnecessary, this.userId will be undefined if user is not logged in
return testViewUSA.find({ _id });
});
If you can update your post to format the code, I or someone else, may take the time to comb through it and find any additional issues.
for the isUserLoggedIn function I didn’t want to do the same copy paste check incase I made a mistake so here is the function it provides the function and the line number of where the function is called
/**
* Throws an error if the user isn't logged in
* @param userId {String|null}
* @throws {UserNotLoggedIn} user needs to be logged in
*/
export function isUserLoggedIn(userId) {
if(!userId) throw Error(`Not Authorized`);
}