Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-07 17:15:31 +02:00
parent 8eef9dfe58
commit c880b1c6a2
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -52,17 +52,22 @@
} }
const client = getClient() const client = getClient()
client.findOne(chunter.class.Attachment, { _id: newValue.resume }).then(result => {
if (result !== undefined) { console.log('newValue.resume', newValue.resume)
resume = {
id: result._id, if (newValue.resume !== undefined) {
name: result.name, client.findOne(chunter.class.Attachment, { _id: newValue.resume }).then(result => {
uuid: result.file, if (result !== undefined) {
size: result.size, resume = {
type: result.type, id: result._id,
name: result.name,
uuid: result.file,
size: result.size,
type: result.type,
}
} }
} })
}) }
let dragover = false let dragover = false
let loading = false let loading = false