@tomei/sso 0.31.0 → 0.31.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/group/group.d.ts +2 -2
- package/dist/src/components/group/group.js +5 -1
- package/dist/src/components/group/group.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/interfaces/group-search-attr.interface.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/group/group.ts +10 -1
- package/src/components/index.ts +1 -0
- package/src/interfaces/group-search-attr.interface.ts +2 -2
package/package.json
CHANGED
@@ -141,7 +141,16 @@ export class Group extends ObjectBase {
|
|
141
141
|
...options,
|
142
142
|
where: queryObj,
|
143
143
|
};
|
144
|
-
|
144
|
+
|
145
|
+
const result = await Group._Repo.findAllWithPagination(options);
|
146
|
+
|
147
|
+
//Map the result to Group instance
|
148
|
+
return {
|
149
|
+
Count: result.count,
|
150
|
+
Companies: result.rows.map(
|
151
|
+
(group) => new Group(group.get({ plain: true })),
|
152
|
+
),
|
153
|
+
};
|
145
154
|
}
|
146
155
|
}
|
147
156
|
|
package/src/components/index.ts
CHANGED