EQMS-1476: (2) fixed ApplyIf checks in qms document creation (#8241)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko 2025-03-16 22:17:08 +03:00 committed by GitHub
parent cf5a64fd22
commit 6a04cdfedc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,7 @@ export async function createControlledDocMetadata (
}> {
const projectId = project ?? documents.ids.NoProject
const ops = client.apply()
const ops = client.apply('create-qms-document')
ops.notMatch(documents.class.Document, {
template: templateId,
@ -303,7 +303,7 @@ export async function createDocumentTemplateMetadata (
path = await getParentPath(client, parent)
}
const ops = client.apply()
const ops = client.apply('create-qms-document')
ops.notMatch(documents.class.Document, {
template: { $exists: false },