From 6855c3e5823e1fc9dd9c257df841d4daa26698b3 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Fri, 14 Jul 2023 10:45:22 -0400 Subject: [PATCH] fix: project modal description field --- src/models/projects/projects.modeltypes.cjs | 2 +- src/validations/projects.validations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/projects/projects.modeltypes.cjs b/src/models/projects/projects.modeltypes.cjs index ed6f6429..c8ce0db0 100644 --- a/src/models/projects/projects.modeltypes.cjs +++ b/src/models/projects/projects.modeltypes.cjs @@ -89,7 +89,7 @@ module.exports = { type: Sequelize.STRING, }, description: { - type: Sequelize.STRING, + type: Sequelize.TEXT, allowNull: true, }, createdAt: { diff --git a/src/validations/projects.validations.js b/src/validations/projects.validations.js index 14a2aa2c..edec4887 100644 --- a/src/validations/projects.validations.js +++ b/src/validations/projects.validations.js @@ -19,8 +19,8 @@ import { pickListValidation } from '../utils/validation-utils'; export const baseSchema = { // warehouseProjectId - derived upon creation // orgUid - derived upon creation - projectId: Joi.alternatives().try(Joi.string(), Joi.number()).required(), currentRegistry: Joi.string().allow(null).optional(), + projectId: Joi.alternatives().try(Joi.string(), Joi.number()).required(), originProjectId: Joi.alternatives() .try(Joi.string(), Joi.number()) .required(),