Skip to content

Commit ad8eff2

Browse files
author
Chahat Gupta
committed
Added missing parentId in POST folder/
1 parent 4ad9b9b commit ad8eff2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/common/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default class Constants {
2+
static rootPath: string = 'root'
3+
}

src/routes/mock_folder.routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ router.post('/', async (req: Request, res: Response): Promise<void> => {
4646

4747
const data = new MockFolder({
4848
_id: new Types.ObjectId(),
49+
parentId: req.body.parentId,
4950
name: req.body.name
5051
})
5152
try {

0 commit comments

Comments
 (0)