mirror of
https://github.com/caprover/caprover
synced 2026-09-25 08:05:35 +00:00
Allow register project to accept description
This commit is contained in:
@@ -11,8 +11,9 @@ router.post('/register/', function (req, res, next) {
|
||||
const dataStore =
|
||||
InjectionExtractor.extractUserFromInjected(res).user.dataStore
|
||||
|
||||
const projectName = `${req.body.projectName || ''}`.trim()
|
||||
const projectName = `${req.body.name || ''}`.trim()
|
||||
const parentProjectId = `${req.body.parentProjectId || ''}`.trim()
|
||||
const description = `${req.body.description || ''}`.trim()
|
||||
|
||||
Promise.resolve()
|
||||
.then(function () {
|
||||
@@ -21,7 +22,7 @@ router.post('/register/', function (req, res, next) {
|
||||
id: projectId,
|
||||
name: projectName,
|
||||
parentProjectId: parentProjectId,
|
||||
description: '',
|
||||
description: description,
|
||||
})
|
||||
})
|
||||
.then(function () {
|
||||
|
||||
Reference in New Issue
Block a user