Skip to content

Commit 6872c36

Browse files
committed
deploy: 1f9fe02
1 parent af7687b commit 6872c36

File tree

16 files changed

+315
-315
lines changed

16 files changed

+315
-315
lines changed

classes/IdentitiesCrudService.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ <h3 id="methods">
510510

511511
<tr>
512512
<td class="col-md-4">
513-
<div class="io-line">Defined in <a href="" data-line="139"
514-
class="link-to-prism">src/management/identities/identities-crud.service.ts:139</a></div>
513+
<div class="io-line">Defined in <a href="" data-line="138"
514+
class="link-to-prism">src/management/identities/identities-crud.service.ts:138</a></div>
515515
</td>
516516
</tr>
517517

@@ -606,7 +606,7 @@ <h3 id="methods">
606606
</tr>
607607
<tr>
608608
<td class="col-md-4">
609-
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:12</a></code>
609+
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:11</a></code>
610610
</div>
611611
</td>
612612
</tr>
@@ -702,7 +702,7 @@ <h3 id="methods">
702702
</tr>
703703
<tr>
704704
<td class="col-md-4">
705-
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:130</a></code>
705+
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:129</a></code>
706706
</div>
707707
</td>
708708
</tr>
@@ -798,7 +798,7 @@ <h3 id="methods">
798798
</tr>
799799
<tr>
800800
<td class="col-md-4">
801-
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:34</a></code>
801+
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:33</a></code>
802802
</div>
803803
</td>
804804
</tr>
@@ -899,8 +899,8 @@ <h3 id="methods">
899899

900900
<tr>
901901
<td class="col-md-4">
902-
<div class="io-line">Defined in <a href="" data-line="99"
903-
class="link-to-prism">src/management/identities/identities-crud.service.ts:99</a></div>
902+
<div class="io-line">Defined in <a href="" data-line="98"
903+
class="link-to-prism">src/management/identities/identities-crud.service.ts:98</a></div>
904904
</td>
905905
</tr>
906906

@@ -1000,8 +1000,8 @@ <h3 id="methods">
10001000

10011001
<tr>
10021002
<td class="col-md-4">
1003-
<div class="io-line">Defined in <a href="" data-line="107"
1004-
class="link-to-prism">src/management/identities/identities-crud.service.ts:107</a></div>
1003+
<div class="io-line">Defined in <a href="" data-line="106"
1004+
class="link-to-prism">src/management/identities/identities-crud.service.ts:106</a></div>
10051005
</td>
10061006
</tr>
10071007

@@ -2603,8 +2603,7 @@ <h3 id="methods">
26032603
import { ValidationConfigException, ValidationSchemaException } from &#x27;~/_common/errors/ValidationException&#x27;;
26042604
import { IdentityState } from &#x27;~/management/identities/_enums/states.enum&#x27;;
26052605
import { Identities } from &#x27;~/management/identities/_schemas/identities.schema&#x27;;
2606-
import { HttpException } from &#x27;@nestjs/common&#x27;;
2607-
import { map, omit } from &#x27;radash&#x27;;
2606+
import { BadRequestException, HttpException } from &#x27;@nestjs/common&#x27;;
26082607
import { CountOptions } from &#x27;mongodb&#x27;;
26092608

26102609
export class IdentitiesCrudService extends AbstractIdentitiesService {
@@ -2738,15 +2737,16 @@ <h3 id="methods">
27382737
public async countAll&lt;T extends AbstractSchema | Document&gt;(filters: {
27392738
[key: string]: FilterQuery&lt;T&gt;;
27402739
}, options?: (CountOptions &amp; MongooseBaseQueryOptions&lt;T&gt;) | null) {
2741-
const res &#x3D; {}
2742-
const maxItems &#x3D; 500;
2743-
for (const key in filters) {
2744-
res[key] &#x3D; await this._model.countDocuments(filters[key], options);
2745-
if (res[key] &gt; maxItems) {
2746-
throw new HttpException(&#x60;La requête a retourné plus de ${maxItems} résultats.&#x60;, 400);
2747-
}
2740+
if (Object.keys(filters).length &gt;&#x3D; 5) {
2741+
throw new BadRequestException(&#x27;Too many filters&#x27;);
27482742
}
2749-
return res;
2743+
2744+
const entries &#x3D; Object.entries(filters);
2745+
const results &#x3D; await Promise.all(entries.map(([key, filter]) &#x3D;&gt;
2746+
this._model.countDocuments(filter, options).then(count &#x3D;&gt; [key, count])
2747+
));
2748+
2749+
return Object.fromEntries(results);
27502750
}
27512751
}
27522752
</code></pre>

js/search/search_index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/BackendsModule.html

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -119,93 +119,93 @@
119119
</g>
120120
<g id="clust4" class="cluster">
121121
<title>cluster_BackendsModule_exports</title>
122-
<polygon fill="none" stroke="black" points="226,-208 226,-260 358,-260 358,-208 226,-208"/>
123-
</g>
124-
<g id="clust6" class="cluster">
125-
<title>cluster_BackendsModule_providers</title>
126-
<polygon fill="none" stroke="black" points="481,-78 481,-130 653,-130 653,-78 481,-78"/>
122+
<polygon fill="none" stroke="black" points="290,-208 290,-260 422,-260 422,-208 290,-208"/>
127123
</g>
128124
<g id="clust3" class="cluster">
129125
<title>cluster_BackendsModule_imports</title>
130-
<polygon fill="none" stroke="black" points="16,-78 16,-130 473,-130 473,-78 16,-78"/>
126+
<polygon fill="none" stroke="black" points="196,-78 196,-130 653,-130 653,-78 196,-78"/>
127+
</g>
128+
<g id="clust6" class="cluster">
129+
<title>cluster_BackendsModule_providers</title>
130+
<polygon fill="none" stroke="black" points="16,-78 16,-130 188,-130 188,-78 16,-78"/>
131131
</g>
132132
<!-- AgentsModule -->
133133
<g id="node1" class="node">
134134
<title>AgentsModule</title>
135-
<polygon fill="#8dd3c7" stroke="black" points="464.71,-122 461.71,-126 440.71,-126 437.71,-122 365.29,-122 365.29,-86 464.71,-86 464.71,-122"/>
136-
<text text-anchor="middle" x="415" y="-99.8" font-family="Times,serif" font-size="14.00">AgentsModule</text>
135+
<polygon fill="#8dd3c7" stroke="black" points="644.71,-122 641.71,-126 620.71,-126 617.71,-122 545.29,-122 545.29,-86 644.71,-86 644.71,-122"/>
136+
<text text-anchor="middle" x="595" y="-99.8" font-family="Times,serif" font-size="14.00">AgentsModule</text>
137137
</g>
138138
<!-- BackendsModule -->
139139
<g id="node5" class="node">
140140
<title>BackendsModule</title>
141-
<polygon fill="#8dd3c7" stroke="black" points="348.97,-187 345.97,-191 324.97,-191 321.97,-187 235.03,-187 235.03,-151 348.97,-151 348.97,-187"/>
142-
<text text-anchor="middle" x="292" y="-164.8" font-family="Times,serif" font-size="14.00">BackendsModule</text>
141+
<polygon fill="#8dd3c7" stroke="black" points="412.97,-187 409.97,-191 388.97,-191 385.97,-187 299.03,-187 299.03,-151 412.97,-151 412.97,-187"/>
142+
<text text-anchor="middle" x="356" y="-164.8" font-family="Times,serif" font-size="14.00">BackendsModule</text>
143143
</g>
144144
<!-- AgentsModule&#45;&gt;BackendsModule -->
145145
<g id="edge1" class="edge">
146146
<title>AgentsModule&#45;&gt;BackendsModule</title>
147-
<path fill="none" stroke="black" d="M415,-122.02C415,-139.37 415,-163 415,-163 415,-163 359.18,-163 359.18,-163"/>
148-
<polygon fill="black" stroke="black" points="359.18,-159.5 349.18,-163 359.18,-166.5 359.18,-159.5"/>
147+
<path fill="none" stroke="black" d="M595,-122.11C595,-141.34 595,-169 595,-169 595,-169 423.25,-169 423.25,-169"/>
148+
<polygon fill="black" stroke="black" points="423.25,-165.5 413.25,-169 423.25,-172.5 423.25,-165.5"/>
149149
</g>
150150
<!-- IdentitiesModule -->
151151
<g id="node2" class="node">
152152
<title>IdentitiesModule</title>
153-
<polygon fill="#8dd3c7" stroke="black" points="347.65,-122 344.65,-126 323.65,-126 320.65,-122 236.35,-122 236.35,-86 347.65,-86 347.65,-122"/>
154-
<text text-anchor="middle" x="292" y="-99.8" font-family="Times,serif" font-size="14.00">IdentitiesModule</text>
153+
<polygon fill="#8dd3c7" stroke="black" points="527.65,-122 524.65,-126 503.65,-126 500.65,-122 416.35,-122 416.35,-86 527.65,-86 527.65,-122"/>
154+
<text text-anchor="middle" x="472" y="-99.8" font-family="Times,serif" font-size="14.00">IdentitiesModule</text>
155155
</g>
156156
<!-- IdentitiesModule&#45;&gt;BackendsModule -->
157157
<g id="edge2" class="edge">
158158
<title>IdentitiesModule&#45;&gt;BackendsModule</title>
159-
<path fill="none" stroke="black" d="M292,-122.11C292,-122.11 292,-140.99 292,-140.99"/>
160-
<polygon fill="black" stroke="black" points="288.5,-140.99 292,-150.99 295.5,-140.99 288.5,-140.99"/>
159+
<path fill="none" stroke="black" d="M416.27,-104C409.88,-104 405.6,-104 405.6,-104 405.6,-104 405.6,-140.89 405.6,-140.89"/>
160+
<polygon fill="black" stroke="black" points="402.1,-140.89 405.6,-150.89 409.1,-140.89 402.1,-140.89"/>
161161
</g>
162162
<!-- JobsModule -->
163163
<g id="node3" class="node">
164164
<title>JobsModule</title>
165-
<polygon fill="#8dd3c7" stroke="black" points="218.44,-122 215.44,-126 194.44,-126 191.44,-122 133.56,-122 133.56,-86 218.44,-86 218.44,-122"/>
166-
<text text-anchor="middle" x="176" y="-99.8" font-family="Times,serif" font-size="14.00">JobsModule</text>
165+
<polygon fill="#8dd3c7" stroke="black" points="398.44,-122 395.44,-126 374.44,-126 371.44,-122 313.56,-122 313.56,-86 398.44,-86 398.44,-122"/>
166+
<text text-anchor="middle" x="356" y="-99.8" font-family="Times,serif" font-size="14.00">JobsModule</text>
167167
</g>
168168
<!-- JobsModule&#45;&gt;BackendsModule -->
169169
<g id="edge3" class="edge">
170170
<title>JobsModule&#45;&gt;BackendsModule</title>
171-
<path fill="none" stroke="black" d="M176,-122.02C176,-139.37 176,-163 176,-163 176,-163 225.02,-163 225.02,-163"/>
172-
<polygon fill="black" stroke="black" points="225.02,-166.5 235.02,-163 225.02,-159.5 225.02,-166.5"/>
171+
<path fill="none" stroke="black" d="M356,-122.11C356,-122.11 356,-140.99 356,-140.99"/>
172+
<polygon fill="black" stroke="black" points="352.5,-140.99 356,-150.99 359.5,-140.99 352.5,-140.99"/>
173173
</g>
174174
<!-- TasksModule -->
175175
<g id="node4" class="node">
176176
<title>TasksModule</title>
177-
<polygon fill="#8dd3c7" stroke="black" points="116.21,-122 113.21,-126 92.21,-126 89.21,-122 23.79,-122 23.79,-86 116.21,-86 116.21,-122"/>
178-
<text text-anchor="middle" x="70" y="-99.8" font-family="Times,serif" font-size="14.00">TasksModule</text>
177+
<polygon fill="#8dd3c7" stroke="black" points="296.21,-122 293.21,-126 272.21,-126 269.21,-122 203.79,-122 203.79,-86 296.21,-86 296.21,-122"/>
178+
<text text-anchor="middle" x="250" y="-99.8" font-family="Times,serif" font-size="14.00">TasksModule</text>
179179
</g>
180180
<!-- TasksModule&#45;&gt;BackendsModule -->
181181
<g id="edge4" class="edge">
182182
<title>TasksModule&#45;&gt;BackendsModule</title>
183-
<path fill="none" stroke="black" d="M70,-122.28C70,-143.32 70,-175 70,-175 70,-175 224.83,-175 224.83,-175"/>
184-
<polygon fill="black" stroke="black" points="224.83,-178.5 234.83,-175 224.83,-171.5 224.83,-178.5"/>
183+
<path fill="none" stroke="black" d="M296.31,-104C302.3,-104 306.4,-104 306.4,-104 306.4,-104 306.4,-140.89 306.4,-140.89"/>
184+
<polygon fill="black" stroke="black" points="302.9,-140.89 306.4,-150.89 309.9,-140.89 302.9,-140.89"/>
185185
</g>
186186
<!-- BackendsService -->
187187
<g id="node6" class="node">
188188
<title>BackendsService </title>
189-
<polygon fill="#fb8072" stroke="black" points="349.9,-252 234.1,-252 234.1,-216 349.9,-216 349.9,-252"/>
190-
<text text-anchor="middle" x="292" y="-229.8" font-family="Times,serif" font-size="14.00">BackendsService </text>
189+
<polygon fill="#fb8072" stroke="black" points="413.9,-252 298.1,-252 298.1,-216 413.9,-216 413.9,-252"/>
190+
<text text-anchor="middle" x="356" y="-229.8" font-family="Times,serif" font-size="14.00">BackendsService </text>
191191
</g>
192192
<!-- BackendsModule&#45;&gt;BackendsService -->
193193
<g id="edge5" class="edge">
194194
<title>BackendsModule&#45;&gt;BackendsService </title>
195-
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M292,-187.11C292,-187.11 292,-205.99 292,-205.99"/>
196-
<polygon fill="black" stroke="black" points="288.5,-205.99 292,-215.99 295.5,-205.99 288.5,-205.99"/>
195+
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M356,-187.11C356,-187.11 356,-205.99 356,-205.99"/>
196+
<polygon fill="black" stroke="black" points="352.5,-205.99 356,-215.99 359.5,-205.99 352.5,-205.99"/>
197197
</g>
198198
<!-- BackendsService -->
199199
<g id="node7" class="node">
200200
<title>BackendsService</title>
201-
<ellipse fill="#fdb462" stroke="black" cx="567" cy="-104" rx="77.57" ry="18"/>
202-
<text text-anchor="middle" x="567" y="-99.8" font-family="Times,serif" font-size="14.00">BackendsService</text>
201+
<ellipse fill="#fdb462" stroke="black" cx="102" cy="-104" rx="77.57" ry="18"/>
202+
<text text-anchor="middle" x="102" y="-99.8" font-family="Times,serif" font-size="14.00">BackendsService</text>
203203
</g>
204204
<!-- BackendsService&#45;&gt;BackendsModule -->
205205
<g id="edge6" class="edge">
206206
<title>BackendsService&#45;&gt;BackendsModule</title>
207-
<path fill="none" stroke="black" d="M567,-122.28C567,-143.32 567,-175 567,-175 567,-175 358.98,-175 358.98,-175"/>
208-
<polygon fill="black" stroke="black" points="358.98,-171.5 348.98,-175 358.98,-178.5 358.98,-171.5"/>
207+
<path fill="none" stroke="black" d="M102,-122.11C102,-141.34 102,-169 102,-169 102,-169 289,-169 289,-169"/>
208+
<polygon fill="black" stroke="black" points="289,-172.5 299,-169 289,-165.5 289,-172.5"/>
209209
</g>
210210
</g>
211211
</svg>

0 commit comments

Comments
 (0)