{this.props.user && <SelfProfileComponent/>}
{this.props.user && this.props.user.rating > 50 && <MegaFunnyBlock/>}
<div class="col-md-3"><div class="my_style">...</div></div>
SELECT products.*, (SELECT COUNT(logOfSales.id) FROM logOfSales WHERE products.id = logOfSales.product_id AND created_at = ?curDay) as countDay, (SELECT COUNT(logOfSales.id) FROM logOfSales WHERE products.id = logOfSales.product_id AND created_at = ?curMonth) as countMonth FROM products WHERE products.id = 1 AND countMonth < products.limit_month AND countDay < products.limit_day
io.use(function(socket, next) {
sessionMiddleware(socket.request, {}, next);
});
io.use(function(socket, next) {
passport.initialize()(socket.request, {}, next);
});
io.use(function(socket, next) {
passport.session()(socket.request, {}, next);
});