fix: resolved validate schema failing in pipeline

This commit is contained in:
=
2025-09-10 22:55:15 +05:30
parent 6f1c884bf5
commit 0153cf9467

View File

@@ -12,7 +12,7 @@ export const kmsRootConfigDALFactory = (db: TDbClient) => {
const findById = async (id: string, tx?: Knex) => {
try {
const result = await (tx || db.replicaNode())(TableName.KmsServerRootConfig)
const result = await (tx || db?.replicaNode?.() || db)(TableName.KmsServerRootConfig)
.where({ id } as never)
.first("*");
return result;