From 9eb358b4080faf0e84dc2dd239f11410d2533e62 Mon Sep 17 00:00:00 2001 From: Rik Smale <13023439+WikiRik@users.noreply.github.com> Date: Fri, 9 Feb 2024 11:49:43 +0100 Subject: [PATCH] fix(event): add new theme categories --- models/Event.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/Event.js b/models/Event.js index 7ab73ef2..8599c2e4 100644 --- a/models/Event.js +++ b/models/Event.js @@ -274,14 +274,14 @@ const Event = sequelize.define( } }, theme_category: { - type: Sequelize.ENUM('arts_creativity', 'sustainability', 'local_culture', 'sports', 'social_equity', 'political_activism', 'mental_health', 'leisure'), + type: Sequelize.ENUM('arts_creativity', 'sustainability', 'local_culture', 'sports', 'social_equity', 'political_activism', 'mental_health', 'leisure', 'personal_development', 'volunteering'), allowNull: false, defaultValue: 'leisure', validate: { notEmpty: { msg: 'Theme should be set.' }, isIn: { - args: [['arts_creativity', 'sustainability', 'local_culture', 'sports', 'social_equity', 'political_activism', 'mental_health', 'leisure']], - msg: 'Theme should be one of these: arts_creativity, sustainability, local_culture, sports, volunteering, social_equity, political_activism, mental_health, leisure.' + args: [['arts_creativity', 'sustainability', 'local_culture', 'sports', 'social_equity', 'political_activism', 'mental_health', 'leisure', 'personal_development', 'volunteering']], + msg: 'Theme should be one of these: arts_creativity, sustainability, local_culture, sports, volunteering, social_equity, political_activism, mental_health, leisure, personal_development, volunteering.' } } },