diff --git a/packages/services/src/processDigitalConformityCredential.service.ts b/packages/services/src/processDigitalConformityCredential.service.ts index d39881e9..a4f51999 100644 --- a/packages/services/src/processDigitalConformityCredential.service.ts +++ b/packages/services/src/processDigitalConformityCredential.service.ts @@ -44,7 +44,7 @@ export const processDigitalConformityCredential: IService = async ( }, }); - const vcUrl = await uploadData(storage, vc, `${identifier}/${generateUUID()}`); + const vcUrl = await uploadData(storage, vc, generateUUID()); const linkResolver = await registerLinkResolver( vcUrl, diff --git a/packages/services/src/validateContext.ts b/packages/services/src/validateContext.ts index 56848cce..18068f1e 100644 --- a/packages/services/src/validateContext.ts +++ b/packages/services/src/validateContext.ts @@ -298,6 +298,7 @@ export const validateDigitalConformityCredentialContext = ( if (_.isEmpty(context.dlr.dlrAPIUrl)) return error('Invalid dlrAPIUrl'); if (_.isEmpty(context.dlr.dlrAPIKey)) return error('Invalid dlrAPIKey'); + if (_.isEmpty(context.dlr.namespace)) return error('Invalid dlr namespace'); return { ok: true, value: context }; };