File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,15 @@ const prod = () => {
3232// If you are here because you are implementing another database, then
3333// just add to the hashtables above! No need to touch down here.
3434routes . database = async ( req , res ) => {
35+ console . log ( "hiaheoifhaie" ) ;
3536 const { email, userid } = req . session ;
3637 const { database } = req . params ;
3738 const { Accounts } = db . getModels ( ) ;
38-
3939 const user = userid && ( await Accounts . findOne ( { where : { id : userid } } ) ) ;
4040 const { username, dbPassword } = user || { } ;
4141 const renderData = { email, username, dbPassword, database } ;
4242 renderData . dbHost = prod ( ) ? dbHost [ database ] : dev_dbHost [ database ] ;
43- renderData . dbExists = username && ( await checkAccount [ database ] ( user ) ) ;
44-
43+ renderData . dbExists = username && ( await checkAccount [ database ] ( username ) ) ;
4544 res . render ( "tutorial" , renderData ) ;
4645} ;
4746
You can’t perform that action at this time.
0 commit comments