backend fix

This commit is contained in:
2026-02-26 18:11:27 +05:30
parent fe6ff2d02c
commit 3486ab07a5
4 changed files with 18 additions and 11 deletions

View File

@@ -21,8 +21,11 @@ query listCertificates @auth(level: USER) {
}
}
query getCertificateById($id: UUID!) @auth(level: USER) {
certificate(id: $id) {
query getCertificateByKey($staffId: UUID!, $certificationType: ComplianceType!)
@auth(level: USER) {
certificate(
key: { staffId: $staffId, certificationType: $certificationType }
) {
id
name
description