diff --git a/lib/events.js b/lib/events.js index 2978858d..dc39dacf 100644 --- a/lib/events.js +++ b/lib/events.js @@ -145,7 +145,7 @@ exports.addEvent = async (req, res) => { data.status = 'first submission'; if (!data.season) { - data.season = 2023; + data.season = 2024; } const event = new Event(data); @@ -245,7 +245,7 @@ exports.editEvent = async (req, res) => { delete data.published; if (!data.season) { - data.season = 2023; + data.season = 2024; } if (Object.keys(data).length === 0) { diff --git a/lib/helpers.js b/lib/helpers.js index 1c0f0f6b..09aeaf9d 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -230,13 +230,13 @@ exports.getEventPermissions = async ({ permissions, event, user }) => { permissions.delete_summeruniversity = permissions.manage_summeruniversity[event.type]; if (user) { - // TODO: this is a temporary solution so people that have applied in 2021 and/or 2022 can apply again + // TODO: this is a temporary solution so people that have applied in 2021, 2022 and/or 2023 can apply again const applicationCount = await Application.count({ where: { user_id: user.id, event_id: { [Sequelize.Op.ne]: event.id }, status: { [Sequelize.Op.ne]: 'rejected' }, cancelled: false, - '$event.season$': 2023 + '$event.season$': 2024 }, include: [{ model: Event,