Need to reload server to update sequelize relationship scope

Your problem is linked to your scope. When you restart your server the given “new Date()” is evaluated and freeze because it is passed as argument. To evaluate “new Date” every time you should use the
function syntaxe endDate() : { return .... } or by using sequelize.fn('NOW') :slight_smile:
Tell me if it works :slight_smile:

1 Like