showing results for - "how to use ternary operatiion in sequelize join statement"
Eugénie
09 Apr 2020
1exports.getStaticCompanies = function () {
2    return Company.findAll({
3        where: {
4            id: [46128, 2865, 49569,  1488,   45600,   61991,  1418,  61919,   53326,   61680]
5        }, 
6        // Add order conditions here....
7        order: [
8            ['id', 'DESC'],
9            ['name', 'ASC'],
10        ],
11        attributes: ['id', 'logo_version', 'logo_content_type', 'name', 'updated_at']
12    });
13};