خرید بک لینک

Vote count: 0

I'm not understanding what's going on...

this works:

router.get('/items', (req, res) => {
    myPromise.then((result) => res.send(result));
});

but this doesn't, it keeps the browser like if the request never ends:

router.get('/items', (req, res) => {
    myPromise.then(res.send);
});

What's wrong?

asked 54 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 14 تير 1395 ساعت: 21:57

صفحه بندی