mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-14 03:10:27 +00:00
EQMS-1476: (2) fixed ApplyIf checks in qms document creation (#8241)
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
parent
cf5a64fd22
commit
6a04cdfedc
@ -150,7 +150,7 @@ export async function createControlledDocMetadata (
|
|||||||
}> {
|
}> {
|
||||||
const projectId = project ?? documents.ids.NoProject
|
const projectId = project ?? documents.ids.NoProject
|
||||||
|
|
||||||
const ops = client.apply()
|
const ops = client.apply('create-qms-document')
|
||||||
|
|
||||||
ops.notMatch(documents.class.Document, {
|
ops.notMatch(documents.class.Document, {
|
||||||
template: templateId,
|
template: templateId,
|
||||||
@ -303,7 +303,7 @@ export async function createDocumentTemplateMetadata (
|
|||||||
path = await getParentPath(client, parent)
|
path = await getParentPath(client, parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ops = client.apply()
|
const ops = client.apply('create-qms-document')
|
||||||
|
|
||||||
ops.notMatch(documents.class.Document, {
|
ops.notMatch(documents.class.Document, {
|
||||||
template: { $exists: false },
|
template: { $exists: false },
|
||||||
|
Loading…
Reference in New Issue
Block a user