Skip to content

Commit

Permalink
Update backend/src/models/Banner.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
erenfn and coderabbitai[bot] authored Jan 12, 2025
1 parent 70a7a36 commit 08b06ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/models/Banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = (sequelize, DataTypes) => {
repetitionType: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: 'show only once',
validate: {
isValidAction(value) {
ensureValidRepetitionOption(value);
Expand Down

0 comments on commit 08b06ef

Please sign in to comment.