mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
preset status
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
5e2d48b8e3
commit
25d98e4b64
@ -44,13 +44,13 @@
|
||||
const client = getClient()
|
||||
|
||||
async function createApplication() {
|
||||
// const state = await client.findOne(core.class.State, { space: _space })
|
||||
// if (state === undefined) {
|
||||
// throw new Error('create application: state not found')
|
||||
// }
|
||||
const state = await client.findOne(core.class.State, { space: _space })
|
||||
if (state === undefined) {
|
||||
throw new Error('create application: state not found')
|
||||
}
|
||||
const id = await client.createDoc(recruit.class.Applicant, _space, {
|
||||
candidate,
|
||||
// state: state._id
|
||||
state: state._id
|
||||
})
|
||||
|
||||
// const kanban = await client.findOne(view.class.Kanban, { attachedTo: _space })
|
||||
|
Loading…
Reference in New Issue
Block a user