Skip to content

Commit

Permalink
chore: DC delete fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Sep 16, 2024
1 parent 3b0cd56 commit 7aaefe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class DigitalCredentialStore extends AbstractDigitalCredentialStore {
let affected: number = 0
const findResult = await dcRepo.findBy(query)
for (const dc of findResult) {
if (dc.parentId !== undefined) {
if (dc.parentId !== null && dc.parentId !== undefined) {
affected += await this.deleteTree(dcRepo, { id: dc.parentId })
}
const result = await dcRepo.delete(dc.id)
Expand Down

0 comments on commit 7aaefe9

Please sign in to comment.