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 <[email protected]>

* feat:schema support for W3C

Signed-off-by: tipusinghaw <[email protected]>

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

Signed-off-by: tipusinghaw <[email protected]>

---------

Signed-off-by: tipusinghaw <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
tipusinghaw authored and KulkarniShashank committed Sep 12, 2024
1 parent 76fc859 commit fb27b1d
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 fb27b1d

Please sign in to comment.