Skip to content

Commit 5687e49

Browse files
committed
fix: project update handler
As project may be updated using M2M token, `updatedBy` may have a negative value in such case.
1 parent 7c24938 commit 5687e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ processUpdate.schema = {
567567
id: joi.numberId(),
568568
directProjectId: joi.optionalNumberId(),
569569
billingAccountId: joi.optionalNumberId().allow(null),
570-
updatedBy: joi.numberId()
570+
updatedBy: joi.number().integer().required(), // could be negative for M2M token
571571
}).unknown(true).required()
572572
}).required()
573573
}

0 commit comments

Comments
 (0)