File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const faunadb = require('faunadb');
1414require ( './rooms.js' ) ( http ) ;
1515
1616const PROD = process . env . PRODUCTION ;
17- console . log ( `Environment ${ PROD || 'DEV '} ` ) ;
17+ console . log ( `Environment ${ PROD ? 'PRODUCTION' : 'DEVELOPMENT '} ` ) ;
1818
1919
2020const toggleMaintanceMode = async ( action ) => {
@@ -32,7 +32,7 @@ const toggleMaintanceMode = async (action) => {
3232 maintenance : action ,
3333 } ,
3434 } ) ;
35- console . log ( ' Toogle maintance mode succeded' ) ;
35+ console . log ( ` Toogle maintance mode succeded, status: ${ action } ` ) ;
3636 } catch ( e ) {
3737 console . error ( 'Toggle maintance mode failed' ) ;
3838 }
@@ -67,7 +67,7 @@ if (process.env.AUTO_PROMOTE) {
6767 } ,
6868 } ) . then ( async ( ) => {
6969 console . log ( 'Auto promotion succeded' ) ;
70- await toggleMaintanceMode ( true ) ;
70+ // await toggleMaintanceMode(true);
7171
7272 // cannot process.exit(0) becouse heroku will restart anyway
7373 } ) . catch ( ( ) => {
You can’t perform that action at this time.
0 commit comments