Hello,
I am using MySQL need to sum +1 end of "fn" func at where, how can I do that?
where: {
DayOfWeek: db.fn('weekday', db.fn('CONVERT_TZ', db.fn('NOW'), 'UTC', db.col('Companies.TimeZoneName'))) + 1
},
Above code is not working right, on console I can see that part
... CompanyHours.DayOfWeek = '[object Object]1' ...
How can I sum?