1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-02 23:41:21 +01:00

increase admin search timeouts

This commit is contained in:
Kyle Spearrin 2018-10-11 22:21:59 -04:00
parent cce4969094
commit 65e240c177
2 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,8 @@ namespace Bit.Core.Repositories.SqlServer
var results = await connection.QueryAsync<Organization>(
"[dbo].[Organization_Search]",
new { Name = name, UserEmail = userEmail, Paid = paid, Skip = skip, Take = take },
commandType: CommandType.StoredProcedure);
commandType: CommandType.StoredProcedure,
commandTimeout: 120);
return results.ToList();
}

View File

@ -58,7 +58,8 @@ namespace Bit.Core.Repositories.SqlServer
var results = await connection.QueryAsync<User>(
$"[{Schema}].[{Table}_Search]",
new { Email = email, Skip = skip, Take = take },
commandType: CommandType.StoredProcedure);
commandType: CommandType.StoredProcedure,
commandTimeout: 120);
return results.ToList();
}