mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
Allow for utilization of readonly db connection (#1937)
This commit is contained in:
parent
95acc79ebb
commit
d1e4a43964
@ -109,7 +109,7 @@ namespace Bit.Infrastructure.Dapper.Repositories
|
|||||||
|
|
||||||
public async Task<DateTime> GetAccountRevisionDateAsync(Guid id)
|
public async Task<DateTime> GetAccountRevisionDateAsync(Guid id)
|
||||||
{
|
{
|
||||||
using (var connection = new SqlConnection(ConnectionString))
|
using (var connection = new SqlConnection(ReadOnlyConnectionString))
|
||||||
{
|
{
|
||||||
var results = await connection.QueryAsync<DateTime>(
|
var results = await connection.QueryAsync<DateTime>(
|
||||||
$"[{Schema}].[{Table}_ReadAccountRevisionDateById]",
|
$"[{Schema}].[{Table}_ReadAccountRevisionDateById]",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user