diff options
| author | Jagan Mohan Reddy Danda <[email protected]> | 2022-04-25 21:43:46 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-25 21:43:46 -0400 |
| commit | 2431dfb05c0477c2f55815f83a7da5da8b12f8b8 (patch) | |
| tree | 6382ba452bd37d096986e02f2d19ea4dbecfa8d9 /interface/controllers/citizens.controller.js | |
| parent | c9d6c587a56e5e7420f48579894831cdb05756d9 (diff) | |
| parent | 6807cb53b724deae0bec5064916463fa7d3d8fb8 (diff) | |
| download | Welfare-Schemes-DMQL-2431dfb05c0477c2f55815f83a7da5da8b12f8b8.tar.xz Welfare-Schemes-DMQL-2431dfb05c0477c2f55815f83a7da5da8b12f8b8.zip | |
Merge pull request #1 from luciferreeves/main
Basic UI with EJS, Express and Sequelize
Diffstat (limited to 'interface/controllers/citizens.controller.js')
| -rw-r--r-- | interface/controllers/citizens.controller.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/interface/controllers/citizens.controller.js b/interface/controllers/citizens.controller.js new file mode 100644 index 0000000..64522b1 --- /dev/null +++ b/interface/controllers/citizens.controller.js @@ -0,0 +1,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 + }); +} |
