feat(e2e): added secrets integration tests

This commit is contained in:
Akhil Mohan
2024-02-15 20:25:39 +05:30
parent f09c48d79b
commit 00876f788c
4 changed files with 787 additions and 5 deletions
@@ -57,6 +57,12 @@ export const secretDALFactory = (db: TDbClient) => {
type: el.type,
...(el.type === SecretType.Personal ? { userId } : {})
});
if (el.type === SecretType.Shared) {
void bd.orWhere({
secretBlindIndex: el.blindIndex,
type: SecretType.Personal
});
}
});
})
.delete()