Merge pull request #1408 from akhilmhdh/feat/integration-test-secret-ops

Integration test for secret ops
This commit is contained in:
Maidul Islam
2024-02-20 11:40:26 -05:00
committed by GitHub
28 changed files with 2270 additions and 264 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()