feat: added replica node for auth method fetch

This commit is contained in:
=
2025-09-10 16:12:00 +05:30
parent e8e51fb1e1
commit ae42f31d69
2 changed files with 90 additions and 1 deletions
@@ -25,7 +25,7 @@ export const identityDALFactory = (db: TDbClient) => {
} as const;
const tableName = authMethodToTableName[authMethod];
if (!tableName) return;
const data = await db(tableName).where({ identityId }).first();
const data = await db.replicaNode()(tableName).where({ identityId }).first();
if (!data) return;
return data.accessTokenTrustedIps;
};