mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05:00
view log id is guid
This commit is contained in:
parent
64cd0b8942
commit
62cf1546cd
@ -64,12 +64,12 @@ namespace Bit.Admin.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<IActionResult> View(string id)
|
public async Task<IActionResult> View(Guid id)
|
||||||
{
|
{
|
||||||
using(var client = new DocumentClient(new Uri(_globalSettings.DocumentDb.Uri),
|
using(var client = new DocumentClient(new Uri(_globalSettings.DocumentDb.Uri),
|
||||||
_globalSettings.DocumentDb.Key))
|
_globalSettings.DocumentDb.Key))
|
||||||
{
|
{
|
||||||
var uri = UriFactory.CreateDocumentUri(Database, Collection, id);
|
var uri = UriFactory.CreateDocumentUri(Database, Collection, id.ToString());
|
||||||
var response = await client.ReadDocumentAsync<LogModel>(uri);
|
var response = await client.ReadDocumentAsync<LogModel>(uri);
|
||||||
if(response?.Document == null)
|
if(response?.Document == null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user