How can I disable lint rules on specific lines or for specific rules?

On further inspection, it appears that the “OTHER CODE BELOW”, is outside of the scope of the query’s .then() function. Therefore, SITMember is in fact undefined.

Furthermore, as I mentioned above, you need to delete the await keyword. That will result in the code at the end running before the code in the .then() function. Even if SITMember would be defined before the query. The “OTHER CODE BELOW” will run before SITMember is initialized with the result of the query.

It appears that what you need is to either: 1) delete the await keyword, and use the SITMember variable inside of the .then() function, or 2) use the await keyword, but don’t use the .then() .

For more information on Promises, see the following articles: