preset status

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-10-10 16:48:16 +02:00
parent 5e2d48b8e3
commit 25d98e4b64
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -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 })