Skip to content

Commit

Permalink
fix(event): add new theme categories (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik authored Feb 9, 2024
1 parent 53382d8 commit a378e24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
}
}
},
Expand Down

0 comments on commit a378e24

Please sign in to comment.