mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
fix: build issues
This commit is contained in:
parent
c80beb3434
commit
04a9f3f229
1 changed files with 3 additions and 3 deletions
|
@ -106,10 +106,10 @@ router.post('/', async ctx => {
|
|||
const payload = validate(projectCreateParams, ctx.request.body)
|
||||
const { id, organization_id } = ctx.state.admin!
|
||||
const admin = await getAdmin(id, organization_id)
|
||||
const project = await createProject(admin!, payload)
|
||||
ctx.body = {
|
||||
...await createProject(admin!, payload),
|
||||
role: ctx.state.projectRole,
|
||||
has_provider: await hasProvider(ctx.state.project.id),
|
||||
...project,
|
||||
has_provider: await hasProvider(project.id),
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue