Fix create review (#1171)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-03-18 16:27:58 +06:00 committed by GitHub
parent 027d15034a
commit 061df2468e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,10 +76,6 @@
}) })
async function createReview () { async function createReview () {
const state = await client.findOne(task.class.State, { space: doc.space })
if (state === undefined) {
throw new Error('create application: state not found')
}
const sequence = await client.findOne(task.class.Sequence, { attachedTo: recruit.class.Review }) const sequence = await client.findOne(task.class.Sequence, { attachedTo: recruit.class.Review })
if (sequence === undefined) { if (sequence === undefined) {
throw new Error('sequence object not found') throw new Error('sequence object not found')