These are chat archives for correa-brian/milkshake

4th
Jun 2016
Katrina
@katrinar
Jun 04 2016 14:10
hi
Brian Correa
@correa-brian
Jun 04 2016 14:34
is yours working
Katrina
@katrinar
Jun 04 2016 14:55
your leg?
Brian Correa
@correa-brian
Jun 04 2016 14:55
yeah
Brian Correa
@correa-brian
Jun 04 2016 15:11
did i miss a lot
Katrina
@katrinar
Jun 04 2016 15:12
no
he checked if his code broke
Katrina
@katrinar
Jun 04 2016 15:40
``
``
//install cookie
if (resource == 'profile'){
req.session.user = result.id
}
    res.json({
        confirmation: 'success',
        result: result
    }) ``

``

    if (resource == 'profile'){
        req.session.user = result.id
    }

    res.json({
        confirmation: 'success',
        result: result
    })

``

Katrina
@katrinar
Jun 04 2016 15:55
componentDidMount(){ api.handleGet('/account/currentuser', null, function(err, response){ if(err){ alert(err.message) return } console.log(JSON.stringify(response)) return }) }

``

componentDidMount(){
    api.handleGet('/account/currentuser', null, function(err, response){
        if(err){
            alert(err.message)
            return
        }
        console.log(JSON.stringify(response))
        return
    })
}

``