Skip to content

Commit 7e1913d

Browse files
authored
Merge pull request #1116 from opencrvs/ocrvs-10834
Fix age testdata, fix age lookup selectors in birth certificate certified copy
2 parents 8bea946 + 89ae040 commit 7e1913d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/api/certificates/source/v2.birth-certificate-certified-copy.svg

Lines changed: 2 additions & 2 deletions
Loading

src/api/notification/testData.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ const RequestDeathDeclarationAction = {
311311
createdByRole: 'LOCAL_REGISTRAR',
312312
createdAtLocation: '9e069dda-0d83-4f67-a4f2-9adbf5658e2e' as unknown as UUID,
313313
declaration: {
314-
'spouse.age': { age: '41', asOfDate: '2025-08-19' },
314+
'spouse.age': { age: '41', asOfDateRef: 'eventDetails.date' },
315315
'spouse.name': {
316316
firstname: 'Toki',
317317
surname: 'Kozuki',
318318
middlename: ''
319319
},
320-
'deceased.age': { age: '31', asOfDate: '2025-08-19' },
320+
'deceased.age': { age: '31', asOfDateRef: 'eventDetails.date' },
321321
'deceased.name': {
322322
firstname: 'Oden',
323323
surname: 'Kozuki',
@@ -367,13 +367,13 @@ const DeathDeclarationAction = {
367367
createdByRole: 'LOCAL_REGISTRAR',
368368
createdAtLocation: '9e069dda-0d83-4f67-a4f2-9adbf5658e2e' as unknown as UUID,
369369
declaration: {
370-
'spouse.age': { age: '41', asOfDate: '2025-08-19' },
370+
'spouse.age': { age: '41', asOfDateRef: 'eventDetails.date' },
371371
'spouse.name': {
372372
firstname: 'Toki',
373373
surname: 'Kozuki',
374374
middlename: ''
375375
},
376-
'deceased.age': { age: '31', asOfDate: '2025-08-19' },
376+
'deceased.age': { age: '31', asOfDateRef: 'eventDetails.date' },
377377
'deceased.name': {
378378
firstname: 'Oden',
379379
surname: 'Kozuki',

0 commit comments

Comments
 (0)