mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 04:37:44 +02:00
UBER-408 Issue as task (#3497)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -62,7 +62,7 @@ export async function createApplication (
|
||||
|
||||
await client.addCollection(recruit.class.Applicant, _space, doc._id, recruit.mixin.Candidate, 'applications', {
|
||||
...data,
|
||||
state: state._id,
|
||||
status: state._id,
|
||||
number: (incResult as any).object.sequence,
|
||||
rank: calcRank(lastOne, undefined)
|
||||
})
|
||||
|
||||
@@ -517,8 +517,8 @@ export async function convert (
|
||||
}
|
||||
|
||||
if (existing !== undefined) {
|
||||
if (existing.state !== state?._id) {
|
||||
update.state = state._id
|
||||
if (existing.status !== state?._id) {
|
||||
update.status = state._id
|
||||
}
|
||||
if (Object.keys(update).length > 0) {
|
||||
await ops.update(existing, update)
|
||||
|
||||
Reference in New Issue
Block a user