Skip to content

Commit

Permalink
chore: update validation context
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleythedeveloper committed Oct 23, 2024
1 parent a7a70f0 commit c79f846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/services/src/validateContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};

0 comments on commit c79f846

Please sign in to comment.