File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Promise.resolve(userToken || cachedToken)
51
51
const project = await ( async ( ) => {
52
52
if ( projectId ) return projectId ;
53
53
54
- const projects = await firebaseTools . list ( { token } ) ;
54
+ const projects = await firebaseTools . projects . list ( { token } ) ;
55
55
const response = await inquirer . prompt ( [
56
56
{
57
57
type : 'list' ,
@@ -62,17 +62,13 @@ Promise.resolve(userToken || cachedToken)
62
62
project . name . toLowerCase ( ) . includes ( 'jscore' ) ? - 1 : 1
63
63
)
64
64
. map ( project => ( {
65
- name : `${ project . name } (${ project . id } )` ,
65
+ name : `${ project . displayName } (${ project . projectId } )` ,
66
66
value : project
67
67
} ) )
68
68
}
69
69
] ) ;
70
70
71
- const {
72
- projectId : { id }
73
- } = response ;
74
-
75
- return id ;
71
+ return response . projectId . projectId ;
76
72
} ) ( ) ;
77
73
78
74
// Write config to top-level config directory
You can’t perform that action at this time.
0 commit comments