File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Emulators } from "../emulator/types";
8
8
import { warnEmulatorNotSupported } from "../emulator/commandUtils" ;
9
9
import { FirestoreOptions } from "../firestore/options" ;
10
10
import { PrettyPrint } from "../firestore/pretty-print" ;
11
+ import { needProjectId } from "../projectUtils" ;
11
12
12
13
export const command = new Command ( "firestore:indexes" )
13
14
. description ( "List indexes in your project's Cloud Firestore database." )
@@ -27,8 +28,9 @@ export const command = new Command("firestore:indexes")
27
28
const printer = new PrettyPrint ( ) ;
28
29
29
30
const databaseId = options . database ?? "(default)" ;
30
- const indexes = await indexApi . listIndexes ( options . project , databaseId ) ;
31
- const fieldOverrides = await indexApi . listFieldOverrides ( options . project , databaseId ) ;
31
+ const projectId = needProjectId ( options ) ;
32
+ const indexes = await indexApi . listIndexes ( projectId , databaseId ) ;
33
+ const fieldOverrides = await indexApi . listFieldOverrides ( projectId , databaseId ) ;
32
34
33
35
const indexSpec = indexApi . makeIndexSpec ( indexes , fieldOverrides ) ;
34
36
You can’t perform that action at this time.
0 commit comments