I have a project in Node JS with the following structure:
"main.ts" calls a function in "mailer.listener.ts", then "mailer.listener.ts" calls in its turn the function FindAlltoAlert in "user.service.ts", accordingly, an error printed to the console (Error: Cannot read property 'find' of undefined), which is generated when "mailer.listener.ts" calls function FindAlltoAlert in "user.service.ts".
Please advise!