get users of particular installer

master
varun 1 year ago
parent d13868f0f8
commit 6811e2c38b

@ -1058,7 +1058,7 @@ exports.getbatchnumbers = async (req, reply) => {
exports.getusersofParticularInstaller = async (req, reply) => { exports.getusersofParticularInstaller = async (req, reply) => {
try { try {
await Tank.find({InstallerId: req.query.InstallerId}) await User.find({installationId: req.query.InstallerId})
.exec() .exec()
.then((docs) => { .then((docs) => {
reply.send({ status_code: 200, data: docs, count: docs.length }); reply.send({ status_code: 200, data: docs, count: docs.length });

Loading…
Cancel
Save