Skip to content
Snippets Groups Projects

fix: remove smiths certs from database when needed

Merged poka requested to merge fix-smiths-certs-removing into main
1 unresolved thread
+ 4
2
@@ -331,8 +331,10 @@ export class DataHandler {
// Process remove smith cert
for (const smithCertRemoved of newData.smithCertRemoved) {
const { issuerId, receiverId } = smithCertRemoved;
this.data.smithCert.delete([issuerId, receiverId]);
const smithCert = await ctx.store.findOneOrFail(SmithCert, {
where: { issuer: { index: issuerId }, receiver: { index: receiverId } },
});
await ctx.store.remove(smithCert);
}
// Process Smith invitation sent
Loading