Skip to content

Commit 4a85e26

Browse files
author
Parth Shah
committed
Merge branch 'hotfix/update-desc-fix'
2 parents 85b0ff0 + 647450c commit 4a85e26

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tc-projects-service",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Projects microservice",
55
"main": "index.js",
66
"engines": {

src/routes/projects/create.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const createProjectValdiations = {
2323
body: {
2424
param: Joi.object().keys({
2525
name: Joi.string().required(),
26-
description: Joi.string().allow(null),
26+
description: Joi.string().allow(null).allow('').optional(),
2727
billingAccountId: Joi.number().positive(),
2828
utm: Joi.object().keys({
2929
source: Joi.string().allow(null),
@@ -69,6 +69,7 @@ module.exports = [
6969
: PROJECT_MEMBER_ROLE.CUSTOMER;
7070
// set defaults
7171
_.defaults(project, {
72+
description: '',
7273
createdBy: req.authUser.userId,
7374
updatedBy: req.authUser.userId,
7475
challengeEligibility: [],

src/routes/projects/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const updateProjectValdiations = {
4141
param: Joi.object().keys({
4242
id: Joi.number().valid(Joi.ref('$params.id')),
4343
name: Joi.string(),
44-
description: Joi.string(),
44+
description: Joi.string().allow(null).allow('').optional(),
4545
billingAccountId: Joi.number().positive(),
4646
status: Joi.any().valid(_.values(PROJECT_STATUS)),
4747
estimatedPrice: Joi.number().precision(2).positive().allow(null),

0 commit comments

Comments
 (0)