|
|
@ -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 });
|
|
|
|