Skip to content

Commit

Permalink
refactor: mark stale documents
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Nov 8, 2024
1 parent 1708b7d commit e0fc937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/did/did.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
documentFromLogs,
Resolver,
mergeLogs,
addressOf,
} from '@ew-did-registry/did-ethr-resolver';
import { EthereumDIDRegistry__factory } from '../../ethers/factories/EthereumDIDRegistry__factory';
import { EthereumDIDRegistry } from '../../ethers/EthereumDIDRegistry';
Expand Down Expand Up @@ -570,7 +571,7 @@ export class DIDService implements OnModuleInit, OnModuleDestroy {
const staleDIDs = (
await this.didRepository.find({ select: ['id'] })
).filter((doc) => {
const identity = doc.id.split(':')[3];
const identity = addressOf(doc.id);
return changedIdentities.includes(identity);
});
await this.didSyncStatusRepository
Expand Down

0 comments on commit e0fc937

Please sign in to comment.