mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 08:20:39 +00: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()
|
const client = getClient()
|
||||||
|
|
||||||
async function createApplication() {
|
async function createApplication() {
|
||||||
// const state = await client.findOne(core.class.State, { space: _space })
|
const state = await client.findOne(core.class.State, { space: _space })
|
||||||
// if (state === undefined) {
|
if (state === undefined) {
|
||||||
// throw new Error('create application: state not found')
|
throw new Error('create application: state not found')
|
||||||
// }
|
}
|
||||||
const id = await client.createDoc(recruit.class.Applicant, _space, {
|
const id = await client.createDoc(recruit.class.Applicant, _space, {
|
||||||
candidate,
|
candidate,
|
||||||
// state: state._id
|
state: state._id
|
||||||
})
|
})
|
||||||
|
|
||||||
// const kanban = await client.findOne(view.class.Kanban, { attachedTo: _space })
|
// const kanban = await client.findOne(view.class.Kanban, { attachedTo: _space })
|
||||||
|
Loading…
Reference in New Issue
Block a user