EQMS-1381 Use stored document code (#7595)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-01-07 19:12:48 +07:00
committed by GitHub
parent c4f8d14a9b
commit 307d7018c2
2 changed files with 3 additions and 15 deletions
@@ -50,8 +50,7 @@ import documents, {
type ProjectMeta,
ControlledDocumentState,
DocumentState,
getDocumentName,
getDocumentId
getDocumentName
} from '@hcengineering/controlled-documents'
import { type Request } from '@hcengineering/request'
@@ -583,7 +582,7 @@ export async function documentIdentifierProvider (client: Client, ref: Ref<Docum
return ''
}
return getDocumentId(document)
return document.code
}
export function documentCompareFn (doc1: Document, doc2: Document): number {