feat: add create department, user form as well as reports for them

This commit is contained in:
prafull-opensignlabs
2024-07-01 16:47:01 +05:30
parent 17b9fc772e
commit d46ba8f307
10 changed files with 302 additions and 193 deletions
@@ -12,6 +12,7 @@ export default async function getUserListByOrg(req) {
const extUser = new Parse.Query('contracts_Users');
extUser.equalTo('OrganizationId', orgPtr);
extUser.include('DepartmentIds');
extUser.descending('createdAt');
const userRes = await extUser.find({ useMasterKey: true });
if (userRes.length > 0) {
const _userRes = JSON.parse(JSON.stringify(userRes));