fix: Add missing default for showOnFrontOfCard in custom fields

This commit is contained in:
Maksim Eltyshev
2025-09-16 18:36:43 +02:00
parent 4985643e68
commit 3a12bb7457
3 changed files with 5 additions and 4 deletions

View File

@@ -43,7 +43,7 @@
* showOnFrontOfCard: * showOnFrontOfCard:
* type: boolean * type: boolean
* description: Whether to show the field on the front of cards * description: Whether to show the field on the front of cards
* example: true * example: false
* responses: * responses:
* 200: * 200:
* description: Custom field created successfully * description: Custom field created successfully

View File

@@ -43,7 +43,7 @@
* showOnFrontOfCard: * showOnFrontOfCard:
* type: boolean * type: boolean
* description: Whether to show the field on the front of cards * description: Whether to show the field on the front of cards
* example: true * example: false
* responses: * responses:
* 200: * 200:
* description: Custom field created successfully * description: Custom field created successfully

View File

@@ -50,8 +50,9 @@
* example: Priority * example: Priority
* showOnFrontOfCard: * showOnFrontOfCard:
* type: boolean * type: boolean
* default: false
* description: Whether to show the field on the front of cards * description: Whether to show the field on the front of cards
* example: true * example: false
* createdAt: * createdAt:
* type: string * type: string
* format: date-time * format: date-time
@@ -82,7 +83,7 @@ module.exports = {
}, },
showOnFrontOfCard: { showOnFrontOfCard: {
type: 'boolean', type: 'boolean',
required: true, defaultsTo: false,
columnName: 'show_on_front_of_card', columnName: 'show_on_front_of_card',
}, },