fix: correct secret import count by filtering replicas

This commit is contained in:
Scott Wilson
2024-09-20 05:24:05 -07:00
parent 0fa9fa20bc
commit aa12a71ff3
3 changed files with 5 additions and 4 deletions
@@ -104,6 +104,7 @@ export const secretImportDALFactory = (db: TDbClient) => {
try {
const docs = await (tx || db.replicaNode())(TableName.SecretImport)
.where(filter)
.where("isReplication", false)
.where((bd) => {
if (search) {
void bd.whereILike("importPath", `%${search}%`);