mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
Fixed null issue when an organization key does not exist (#2501)
This commit is contained in:
parent
7cbc4a8970
commit
9ce6ee443b
@ -25,6 +25,6 @@ public class GetOrganizationApiKeyQuery : IGetOrganizationApiKeyQuery
|
|||||||
.GetManyByOrganizationIdTypeAsync(organizationId, organizationApiKeyType);
|
.GetManyByOrganizationIdTypeAsync(organizationId, organizationApiKeyType);
|
||||||
|
|
||||||
// NOTE: Currently we only allow one type of api key per organization
|
// NOTE: Currently we only allow one type of api key per organization
|
||||||
return apiKeys.Single();
|
return apiKeys.SingleOrDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user