Skip to content

Commit 04a9f3f

Browse files
committed
fix: build issues
1 parent c80beb3 commit 04a9f3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/platform/src/projects/ProjectController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ router.post('/', async ctx => {
106106
const payload = validate(projectCreateParams, ctx.request.body)
107107
const { id, organization_id } = ctx.state.admin!
108108
const admin = await getAdmin(id, organization_id)
109+
const project = await createProject(admin!, payload)
109110
ctx.body = {
110-
...await createProject(admin!, payload),
111-
role: ctx.state.projectRole,
112-
has_provider: await hasProvider(ctx.state.project.id),
111+
...project,
112+
has_provider: await hasProvider(project.id),
113113
}
114114
})
115115

0 commit comments

Comments
 (0)