fix(server/middleware): ficmas middleware scans the current year instead of what's in the .env file

truly automatic!
This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-10-10 22:13:26 -04:00
parent 2f60479ad2
commit f235d7da44
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -11,7 +11,7 @@ export default eventHandler(async (event) => {
fmfilt.isAnniversary = true;
fmfilt.year = y;
} else if (new Date() < new Date(Date.parse("Dec 25 " + y))) {
fmfilt.year = process.env.YEAR;
fmfilt.year = y;
fmfilt.isAnniversary = false;
} else {
fmfilt.keythatdoesntexist = {