UBER-408 Issue as task (#3497)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-07-13 19:33:23 +06:00
committed by GitHub
parent d29a2df4d9
commit ab02db5890
46 changed files with 216 additions and 175 deletions
+1 -1
View File
@@ -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)
})
+2 -2
View File
@@ -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)