Cherry Pick of recent changes in qms (#8498)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko
2025-04-09 16:14:38 +04:00
committed by GitHub
parent 3d7bedd204
commit 280a0819a2
38 changed files with 428 additions and 202 deletions
+2 -2
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 },