Skip to content

Commit e09ea4b

Browse files
Raj PatelRaj Patel
authored andcommitted
Clean code
1 parent 6777cd1 commit e09ea4b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

api/actions/actions-router.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
const express = require('express')
22
const Actions = require('./actions-model')
3-
const { handleError, checkActionId, checkCompleted } = require('./actions-middlware')
3+
const {
4+
handleError,
5+
checkActionId,
6+
checkCompleted
7+
} = require('./actions-middlware')
48
const { actionIdChecker } = require('../projects/projects-middleware')
59
const router = express.Router()
610

api/projects/projects-router.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
const express = require('express')
22
const Projects = require('./projects-model')
3-
const { handleError, actionIdChecker, validateAction } = require('./projects-middleware')
3+
const {
4+
handleError,
5+
actionIdChecker,
6+
validateAction
7+
} = require('./projects-middleware')
48
const router = express.Router()
59

610
router.get('/', async(req, res, next) => {

api/schemas/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const actSchema = yup.object().shape({
2020
description: yup
2121
.string()
2222
.trim()
23-
.max(128, 'cannot be longer than 128 chars')
23+
.max(100, 'cannot be longer than 100 chars')
2424
.required('description is required'),
2525
notes: yup
2626
.string()

0 commit comments

Comments
 (0)