Skip to content

Commit

Permalink
fix: migration did for organization DIDs (#948)
Browse files Browse the repository at this point in the history
* feat:migration script for did list

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

* feat:schema support for W3C

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

* fix: validation for null and empty string for did migration

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

---------

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>
  • Loading branch information
tipusinghaw authored and KulkarniShashank committed Sep 11, 2024
1 parent 9e36fbc commit 67e5b07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/prisma-service/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ const migrateOrgAgentDids = async (): Promise<void> => {
}
});

const orgDids = orgAgents.map((agent) => agent.orgDid);

const orgDids = orgAgents.map((agent) => agent.orgDid).filter((did) => null !== did && '' !== did);
const existingDids = await prisma.org_dids.findMany({
where: {
did: {
Expand Down

0 comments on commit 67e5b07

Please sign in to comment.