aboutsummaryrefslogtreecommitdiff
path: root/interface/controllers/citizens.controller.js
blob: 64522b107193a7c45fa48aef3d6144141d11b979 (plain)
1
2
3
4
5
6
7
8
9
10
11
const db = require("../models");
const citizens = db.citizens;
const op = db.Sequelize.Op;

// Retrieve all citizens from the database. Limit the number of citizens returned to 10.
exports.findXCitizens = () => {
    const limit = 10;
    return citizens.findAll({
        limit: limit
    });
}