Skip to content

Commit 83bab6c

Browse files
committed
feat: allow unset project billing account
1 parent 8df5f2b commit 83bab6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/projects/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const createProjectValidations = {
2929
body: Joi.object().keys({
3030
name: Joi.string().required(),
3131
description: Joi.string().allow(null).allow('').optional(),
32-
billingAccountId: Joi.number().positive(),
32+
billingAccountId: Joi.number().positive().allow(null),
3333
utm: Joi.object().keys({
3434
source: Joi.string().allow(null),
3535
medium: Joi.string().allow(null),

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
id: Joi.number().valid(Joi.ref('$params.id')),
4242
name: Joi.string(),
4343
description: Joi.string().allow(null).allow('').optional(),
44-
billingAccountId: Joi.number().positive(),
44+
billingAccountId: Joi.number().positive().allow(null),
4545
directProjectId: Joi.number().positive().allow(null),
4646
status: Joi.any().valid(_.values(PROJECT_STATUS)),
4747
estimatedPrice: Joi.number().precision(2).positive().allow(null),

0 commit comments

Comments
 (0)