Migrations Ticket M220JS: connection string bug

hey ,
something is wrong with the require(“dotenv”).config() in the movie-last-updated-migration.js file . i saw this problem in many topics here but did not found an answer.

i have to put the actual connection string and DB name in the ‘host’ and ‘mflix’ variables to make this work , but it seams that the connection to the proccess.env variables are not working correctly .

how to fix that , i tried to put the path to the .env file : ‘require(“dotenv”).config({path:})’ , which still doesn’t seems to work .

Please provide the screenshot of the error.

nevermind , to path to the ‘dotenv’ does the work , i.e. :

require(“dotenv”).config({path: ‘…/…/.env’})

thanks anyway