Skip to content

Commit

Permalink
certificate event type fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq89 committed Dec 26, 2024
1 parent 3269888 commit 55acb6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/api/certificates/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

import { Request, ResponseToolkit } from '@hapi/hapi'
import { Event } from '../../form/types/types'

type FontFamilyTypes = {
normal: string
Expand Down Expand Up @@ -43,7 +44,7 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
const certificateConfigs: ICertificateConfigData[] = [
{
id: 'birth-certificate',
event: 'birth',
event: Event.Birth,
label: {
id: 'certificates.birth.certificate',
defaultMessage: 'Birth Certificate',
Expand All @@ -67,7 +68,7 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
},
{
id: 'birth-certificate-certified-copy',
event: 'birth',
event: Event.Birth,
label: {
id: 'certificates.birth.certificate.copy',
defaultMessage: 'Birth Certificate certified copy',
Expand All @@ -92,7 +93,7 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
},
{
id: 'death-certificate',
event: 'death',
event: 'death' as Event.Death,
label: {
id: 'certificates.death.certificate',
defaultMessage: 'Death Certificate',
Expand All @@ -116,7 +117,7 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
},
{
id: 'death-certificate-certified-copy',
event: 'death',
event: 'death' as Event.Death,
label: {
id: 'certificates.death.certificate.copy',
defaultMessage: 'Death Certificate certified copy',
Expand All @@ -141,7 +142,7 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
},
{
id: 'marriage-certificate',
event: 'marriage',
event: 'marriage' as Event.Marriage,
label: {
id: 'certificates.marriage.certificate',
defaultMessage: 'Marriage Certificate',
Expand All @@ -165,7 +166,7 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
},
{
id: 'marriage-certificate-certified-copy',
event: 'marriage',
event: 'marriage' as Event.Marriage,
label: {
id: 'certificates.marriage.certificate.copy',
defaultMessage: 'Marriage Certificate certified copy',
Expand Down
2 changes: 1 addition & 1 deletion src/data-generator/declare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function createBirthDeclarationData(
otherInformantType: '',
contactPhoneNumber:
'+2607' + faker.number.bigInt({ min: 10000000, max: 99999999 }),
email: faker.internet.email({
contactEmail: faker.internet.email({
firstName: motherFirstName,
lastName: familyName
}),
Expand Down

0 comments on commit 55acb6a

Please sign in to comment.