mirror of
https://github.com/bitwarden/browser
synced 2026-01-03 09:03:32 +00:00
[PS-1841] Fix org-* commands for CLI (#4013)
* Add getFromState method * Added a method for CLI to get an org from state * Converted all CLI calls to `.get()` * Used `.getFromState` instead of `.get` * Deprecate getFromState method
This commit is contained in:
@@ -23,7 +23,7 @@ export class ImportCommand {
|
||||
): Promise<Response> {
|
||||
const organizationId = options.organizationid;
|
||||
if (organizationId != null) {
|
||||
const organization = await this.organizationService.get(organizationId);
|
||||
const organization = await this.organizationService.getFromState(organizationId);
|
||||
|
||||
if (organization == null) {
|
||||
return Response.badRequest(
|
||||
|
||||
Reference in New Issue
Block a user